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
vijay kumar kvijay kumar k 

how to send a email after record is inserted

it is possible to send an email without writing a trigger.
suppose take contact object,insert one contact(lastname=jon,email=1232mail.com),after insert this record jon receive an email as conform message.
it it is no,please send me code.

thanks in advance
 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Vijay,

I trust you are doing very well.

You can send email through workflow and process builder. Please refer to the below blog which has step by step procedure, which might help you with the above issue. 

https://automationchampion.com/tag/welcome-email-to-new-users-in-salesforce/


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas
Raj VakatiRaj Vakati
You can use workflow to send the email message 

Emails can only be sent to the Email Fields residing on the record via Workflow Rule + Email Alert. If the Email field is on the Contact record, we need to bring this email field to Lead record in order to use the same inWorkflow Rule Email Alert.

Now, we will build the Workflow Rule + Field Update. Here are the steps:
       
 1. Setup | Create | Workflow & Approvals | Workflow Rules
a. Click New Rule
b. Select the object: Contact
c. Enter the rule name: Email alert for related contact
d. Evaluation Criteria: Evaluate the rule when a record is created, and everytime it's edited
e. Rule Criteria: Formula evaluates to true
f. Formula: AND(NOT(ISBLANK(email)), ISCHANGED(email))
g. Click Save & Next

2. Again click on Add Workflow Action
a. Select Email Alert
b. Enter the description like Email Alert to Contact
c. Select the desired Email Template
            d. In Recepient Type select - Email Field. You would get the Email : Contact Email is listed in Available Recepients section.
                Select the same and add it to Selected Recepients section.
e. Click on Save
f. Click Done
g. Click Activate