The Mail Sender Lightning Web Component (LWC) allows you to send emails from within Salesforce. It provides a simple and user-friendly interface for composing and sending emails to recipients.
- Compose and send emails using a Lightning Web Component (LWC) in Salesforce.
- Validate recipient email addresses to ensure they are in the correct format.
- Display error messages for invalid input or email send failures.
- Easily integrate the Mail Sender LWC into your Salesforce Lightning App or Record Page.
To use the Mail Sender LWC in your Salesforce org, follow these steps:
-
Clone or Download this Repository:
- Clone this GitHub repository to your local machine using the following command:
git clone https://github.com/s4SHIVam7/mail_Sender_Lwc.git
- Clone this GitHub repository to your local machine using the following command:
-
Deploy the Lightning Web Component:
- Deploy the
MailSenderLWC
Lightning Web Component to your Salesforce org.
- Deploy the
-
Add the Component to Your Salesforce Page:
- Add the
MailSenderLWC
component to your Lightning App or Record Page.
- Add the
-
Open a Salesforce Lightning Page or App:
- Navigate to a Salesforce Lightning Page or App where you want to send an email.
-
Fill in the Email Details:
- Enter the recipient's email address, subject, and email body in the provided fields.
-
Send the Email:
- Click the "Send Email" button to send the email. The component will validate the recipient's email address and show error messages if needed.
-
View Toast Messages:
- After sending the email, you will receive toast messages indicating whether the email was sent successfully or if there was an error.
For questions, support, or feedback, please feel free to reach out:
- Telegram: @shivam_l
- LinkedIn: Shivam Laidwar