In Talend Open Studio using the tSendMail component, its correctly configured, but sometimes when I press Run, it shows an authentication error and othertimes it works perfectly.
Config to the tSendMail Component
this is the message when it runs ok
Starting job ProbarConexiones at 17:14 16/02/2022.
[statistics] connecting to socket on port 3990
[statistics] connected
[statistics] disconnected
Job ProbarConexiones ended at 17:14 16/02/2022. [exit code=0]
then this is the message when it fails
Starting job ProbarConexiones at 17:36 16/02/2022.
[statistics] connecting to socket on port 3671
[statistics] connected
Exception in component tSendMail_3 (ProbarConexiones)
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at proyectogeneralv2.probarconexiones_0_1.ProbarConexiones.tSendMail_3Process(ProbarConexiones.java:433)
at proyectogeneralv2.probarconexiones_0_1.ProbarConexiones.runJobInTOS(ProbarConexiones.java:716)
at proyectogeneralv2.probarconexiones_0_1.ProbarConexiones.main(ProbarConexiones.java:566)
[statistics] disconnected
Job ProbarConexiones ended at 17:36 16/02/2022. [exit code=1]
any idea what can cause this behavior?
Had to do these next steps:
Update the jar from 1.4.0 to 1.4.7 of the tSendMail component in the module view
Used this parameter -Dmail.smtp.ssl.protocols=TLSv1.2
in the preferences/Talend/RunDebug window
And now it works perfectly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.