Back to Summer Batch home page

Email sending support

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

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

Optional properties (Default value is provided, however can set at initialization time):

Configuring the EmailTasklet in the job XML file:

Example 7.12. EmailTasklet usage in the job XML file

and below is a sample Unity configuration :

Example 7.13. EmailTasklet Unity configuration

Back to Summer Batch home page