Send email notification on success or failure

One Star

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.
One Star

Re: Send email notification on success or failure

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
One Star

Re: Send email notification on success or failure

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.
Employee

Re: Send email notification on success or failure

Hello The job name can be retreive by using the variable "private final String jobName" initialized in each job.
Best regards!
One Star

Re: Send email notification on success or failure

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.