Scenario:
We have a custom page named "Holiday Master" On this page, holidays are listed for a company using a date field. We want to send an announcement of holidays to all employees via email. To achieve this, we have added an action button labeled "Send Holiday Announcement Email" On this action button, we have added code :
Helping from system code
"Send Email" functionality.
The Result is
Requirement :
- When we click the action button "Send Holiday Announcement Email," the date field should flow from the Holiday Master table to the email outbox table (Email Editor Page), as we need to mention that date in the email.
- The user can change the email body and use different templates. When they click on "Send Mail" (Note: this will be a custom button on the email editor), it will send the email to different employees via a loop.