Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Send email notification on success or failure

Hello all,
I am new to Talend and learning my ropes.
I need to send an email notification with log data attached or pasted into email body when job completed either with success or failure. In case of failure I need to know what component failed.
My RDBMS is MySQL 5.
Could you please explain me how to achieve that?
Thanks a lot in advance!
Pit.
Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hi
you can use tsend mail to send emails.
for success or failure you must use connection by "on success" or "on error" those are connection designed to be used for this reason you can use them to run jobs or components after the success or failure of a job or a component
for more details try to see user guide and reference guide.
best regards
anas
Anonymous
Not applicable
Author

Thanks, Anas. It was helpful.
Another related question - In subject message I want dynamically specify job name. How to retrieve and what's the name of the environment variable containing this info?
Thank you,
Pit.
Anonymous
Not applicable
Author

Hello The job name can be retreive by using the variable "private final String jobName" initialized in each job.
Best regards!
Anonymous
Not applicable
Author

Where it should or can be done - in Design or Code mode? Can you please, if possible, show an example. I am new to Talend and still learning my way around.
Thank you,
Pit.