[英]Error sending email in Talend Open Studio
在使用 tSendMail 組件的 Talend Open Studio 中,它已正確配置,但有時當我按下運行時,它會顯示身份驗證錯誤,而有時它會完美運行。
這是運行正常時的消息
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]
那么這是失敗時的消息
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]
知道什么會導致這種行為嗎?
必須執行以下后續步驟:
將模塊視圖中的tSendMail組件的jar從1.4.0更新到1.4.7
在首選項/Talend/RunDebug window 中使用了此參數-Dmail.smtp.ssl.protocols=TLSv1.2
TLSv1.2
現在它完美地工作了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.