How to send predefined email onclick of send email button
I developed EmailTemplate , Encryption and MxModule Reflection and Test email is working fine but I want to send predefined mail to entered email. These is my email page and there is no any option to send mail. When I click on new button then there is option to enter mail id and all things but no any send button These is button where I want to implement email functionality.
Do you want to send a predefined email by just clicking on a send-button?
→ What you have to do is the following:
Setup the mail configuration (ports etc.).
Setup the email template
give the template a unique name.
Set the “from address”, “from display name” and “subject”
If you want to use placeholders you need to refresh the correct modules in the Mx model Reflection overview page.
Setup the body of the mail.
Create a microflow (e.g. SendNewMail) and do the following:
retrieve the EmailTemplate (Xpath = templatename)
Duplicate the “Sub_CreateAndQueuedEmail” from the EmailTemplate module and set a the return value to Email. If you used tokens in the body of the mail, make sure that you pass the correct parameters to this microflow and create new inputParameters in this microflow.
In the “SendNewMail microflow” Call the duplicated microflow.
Finaly call the IVK_SendEmail microflow from the EmailTemplate module and pass the return value from the duplicated “Sub_CreateAndQueuedEmail” microflow.
Create a button on a page that calls the SendNewMail microflow and done!