You need to sign in to do that
Don't have an account?
pokalakari naga
Trigger on contact and send email notification
Hi everyone,
Can anyone help me to write a trigger to create an Contact when an Account is created and send an email notification to the contact. In Account object I have created a custom field for email ID and create a contact.
Thanks in advance.
Regards,
naga.
Can anyone help me to write a trigger to create an Contact when an Account is created and send an email notification to the contact. In Account object I have created a custom field for email ID and create a contact.
Thanks in advance.
Regards,
naga.
I write your trigger, please check
Please don't forget to marked as best answer if this was helpful
Thank you
Avaneesh Singh
All Answers
I write your trigger, please check
Please don't forget to marked as best answer if this was helpful
Thank you
Avaneesh Singh
if you want anything else then let me know
I want to know why you have take the string(Is) email.setToAddresses(ls). Can't we directly give the contact.email.
this method only accepts List of string for sending email either you have to send one email or more than that you just have to put in the list and pass it as an argument
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_single.htm
Check this Link or see this image
Thank you
Avaneesh Singh