You need to sign in to do that
Don't have an account?
nishanth0208
Anyway to change FROM EMAIL ADDRESS while sending an email using singleemailmessage class
Dear All,
I 'd written apex code to send an email using singleemailmessage class.
While sending this email i want to change the FROM ADDRESS. ByDefault, it is using the user's email id. but i want to set it to 'alerts@companyname.com'.
Can i change the from address to achieve this?
Please share info!
thanx.
Can you post your code once. We can change the email id at run time.
I had the similar problem. Refer this post, it might be helpful:
http://boards.developerforce.com/t5/Apex-Code-Development/Set-fromAddress-in-Email/m-p/271463#M47308