You need to sign in to do that
Don't have an account?

Set record owner in from address in email sending from apex class
Hi,
I have a requirement that email sent from apex class is need to set from addresss as Lead owner. In my org there are number of users, so, we can't add all those users in Organization-wide-address. So how can I set the from address(Name and email) ?
I have a requirement that email sent from apex class is need to set from addresss as Lead owner. In my org there are number of users, so, we can't add all those users in Organization-wide-address. So how can I set the from address(Name and email) ?
Please see a sample code and a link below which gives the complete information on this
http://www.forcetree.com/2009/07/sending-email-from-your-apex-class.html
Best Regards
Naga Kiran
Do you have the Lead information in your apex class ?
Yes, I have lead information in my class. I need to send an email to that lead from lead owner. I know we need to add email in Organization-wide-email addresses but there are so many users in my system. It is difficult add all of them in Org-wide-address.