Step 9 : Call sendEmail() method for sending email
Call sendEmail() for triggering email, this method can be called at any place of your controller command whereever you want to send email.
Example:- Let say if you want to trigger a email to user who has place an order. Please see code sample for same
Class ExOrderProcessCmdImpl extends OrderProcessCmdImpl{
Public void performExecute(){
Super.performExecute();
sendEmail();
}
}
Note: - In this case sendEmail() method should defined in ExOrderProcessCmdImpl. In other words, method sendEmail() mentioned above in step 8 should present in class ExOrderProcessCmdImpl
Step 10: Content of AbcEmailNotify.jsp
Modify your AbcEmailNotify.jsp as per you requirement and template, otherwise email will be sent to customer without any body/content, but subject line will be there which you have written in step 8.
sendMsgCmd.setConfigData("subject", "This is test email");
In case if you are facing any problem, send an email at shail.mishra1980@gmail.com, will try to resolve issue.