It is often useful or required to programatically send an e-mail message from an application. This sample provides a builder to facilitate sending e-mail messages from an application.
This sample illustrates the creation of a custom builder to send e-mail messages using an SMTP server. The attached sample contains the builder code only.
Notes on running the sample and prerequisites
Import the attached zip file into your project using the Import WebSphere Portlet Factory Archive command. After the sample has been imported, you will need to refresh your Builder Palette by clicking the Refresh button in the Builder Palette dialog. You can then add a Mail builder to your model and populate the builder inputs. The SendMail Method created by the builder can be called to send the message.
Download the builder from here: mail_builder.zip