You need to sign in to do that
Don't have an account?
TN Admin
How to send an email to the list of emails picked from a custom field in apex?
Is there any way to send a mail to the list of mails in the custom field?....
We have one custom field in a custom object. User will enter list of emails in one custom text field called "EmailIds" and the user clicks on the button in the same object then it should send email to all user mensioned in the custom field.
We have one custom field in a custom object. User will enter list of emails in one custom text field called "EmailIds" and the user clicks on the button in the same object then it should send email to all user mensioned in the custom field.
You can use Messaging.SingleEmailMessage to send an email to at most 100 different addresses.
Is it a string custom field? How are the email recipients stored? Separated by comma? I will assume that for my response:
Check here the documentation: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_single.htm
Hope that helps.
Regards