简体   繁体   English

在 Talend Open Studio 中发送 email 时出错

[英]Error sending email in Talend Open Studio

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.在使用 tSendMail 组件的 Talend Open Studio 中,它已正确配置,但有时当我按下运行时,它会显示身份验证错误,而有时它会完美运行。

Config to the tSendMail Component配置到 tSendMail 组件

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:必须执行以下后续步骤:

  1. Update the jar from 1.4.0 to 1.4.7 of the tSendMail component in the module view将模块视图中的tSendMail组件的jar从1.4.0更新到1.4.7

  2. Used this parameter -Dmail.smtp.ssl.protocols=TLSv1.2 in the preferences/Talend/RunDebug window在首选项/Talend/RunDebug window 中使用了此参数-Dmail.smtp.ssl.protocols=TLSv1.2 TLSv1.2

And now it works perfectly.现在它完美地工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM