Configuring Email

Configuring Email

Email alerting is optional; however, I would recommend configuring this. If you do not want to configure Email alerting, you can skip this part of the tutorial.

Note. As well as being an integral part of monitoring the success or failure of your Jobs, this part of the tutorial will help to give you some insight in to hierarchical Context Loading and the benefits it will bring to your project’s ease of Configuration Management.

We’ll assume that your organisation has a single SMTP Server and you’ll use a single Email account for outbound Email, for your entire Talend Development.

Remember that the Framework will allow you to specify the account details at Organisation, Project, and Job level. This is how the Framework Context management will simplify your own Configuration Management.

Edit your newly created Context File that will define your SMTP settings: –


You’ll see that there are a couple of examples for both Gmail and Microsoft Outlook. Un-comment and amend the ones that you want to use, or simple create your own.

To test our SMTP settings, we’ll configure the Framework to send an Email on successful completion of a Job (you can disable this afterwards, if you want to).

Edit your newly created Context File that will define your Framework settings: –


Make the following setting change, by un-commenting the entry, and setting the value to true.


Now re-run the Template Job. You should now receive an Email, on successful completion of the Job.

If you get an error, review this section and correct any errors.

Note. You can always enter debug mode, to get extra diagnostics from the Framework, and your own Jobs, should you experience an error.

In the case of Email Execution Reporting, you would see the Java Stack Trace from a failed Email request.

To enter debug mode, edit the file: –


And set the following parameter: –