You need to sign in to do that
Don't have an account?
Prachi Gadewar SFDC
Want to set 'from' in mail
Hi all,
I am sending mail from my batch class to given mail Ids using SingleEmailMessage instance and methods. I am setting up setSenderDisplayName to 'test'. After sending that mail, In mail for From - test<mail Id>showing like that. but I don't want to show email Id. Or receiving mailer can not reply for the same mail. Anyone know how should I achieve this?
Thanks.
mail.setReplyTo('noreply@all.com' (mailto:'noreply@all.com'));