function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Cheerag VijayaCheerag Vijaya 

Sending Mail to Contacts

Hi, I need to write a trigger by which whenever a Contact is created, an email must be sent to the mail-id we specify. In that mail there should be :
Contact Details : 1.First Name. 2.LastName, 3.Account , 4.Content Like : "Hi , an Acc. is created bla bla bla......" 
SinghforceSinghforce
Hi Cheerag,

I will suggest not to go via code for sending mails as you need to consider many more things like Number of Emails limit per transaction, what will happen if bulk load of contacts are done and others..

Instead of code, do this via Workflow which will be easier to maintain.

Pls mark this answer as solution if it resolves your query.

Thanks,
Dilip Singh
Cheerag VijayaCheerag Vijaya
Sorry I need to do it by trigger