Back to Summer Batch home page

Email sending support

Using the EmailTasklet (full name : Summer.Batch.Extra.EmailSupport.EmailTasklet), you can send email using the SMTP protocol. This tasklet relies on the System.Net.Mail.SmtpClient to perform the mail sending operations.

The following properties are mandatory (need to be set at initialization time):

Optional properties (need to be set at initialization time, but a default value is provided if needed):

Configuring the EmailTasklet in the job xml file:

Example 7.12. EmailTasklet usage in the job xml file


and here is a sample Unity configuration :

Example 7.13. EmailTasklet Unity configuration


Back to Summer Batch home page