You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

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
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
Offline
Pages: 1