• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Exception Handling on TsendMail

#1 2011-07-20 20:07:17

Fatkut
Member
Company: Turkish Airlines
Registered: 2011-05-18
Posts: 16

[resolved] Exception Handling on TsendMail

Tags: [error, mail, tsendmail]

Hi;
Im using tSendMail to send info messages or news to our customers. While sending a mail to multiple addresses; if one of the addresses is wrong it generates the exception "javax.mail.SendFailedException:Invalid Addresses".. Is it possible to show me which one of the addresses failed ?

Best Regards
Fatih

Last edited by Fatkut (2011-07-20 20:15:09)

Offline

#2 2011-07-21 05:11:29

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: [resolved] Exception Handling on TsendMail

Hi
We can't validate the address without executing the job, so you have to iterate each address and send the info one by one, and you can know which address is invalid. For example:
parent job:
tForEach--iterate--tRunJob

child job:

tSendMail
    |
onsubjoberror
   |
tFixedFlowInput--main--tFileOutputDelimited

on tRunJob: call the child job, uncheck the box 'die on error', pass the current iterate address to child job using context variable.

on tFixedFlowInput and tFileOutputDelimitedt: generate current address and write it to a file.

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2011-08-01 11:12:51

Fatkut
Member
Company: Turkish Airlines
Registered: 2011-05-18
Posts: 16

Re: [resolved] Exception Handling on TsendMail

Thank you very much.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Exception Handling on TsendMail

Board footer

Powered by FluxBB