我想通过talend中的tsend电子邮件组件发送电子邮件

时间:2018-11-14 17:00:18

标签: etl talend

您好,我想通过talend中的tsend电子邮件组件发送电子邮件。我将组件配置为enter image description here

但是它仍然给我错误

Exception in component tSendMail_1 (EmailJob)
javax.mail.MessagingException: Exception reading response;
  nested exception is:
    java.net.SocketException: Connection reset
    at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
    at javax.mail.Service.connect(Service.java:297)
    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 local_project.emailjob_0_1.EmailJob.tSendMail_1Process(EmailJob.java:967)
    at local_project.emailjob_0_1.EmailJob.tFileInputProperties_1Process(EmailJob.java:705)
    at local_project.emailjob_0_1.EmailJob.runJobInTOS(EmailJob.java:1253)
    at local_project.emailjob_0_1.EmailJob.main(EmailJob.java:1102)
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at sun.security.ssl.InputRecord.readFully(Unknown Source)
    at sun.security.ssl.InputRecord.read(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
    at sun.security.ssl.AppInputStream.read(Unknown Source)
    at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
    at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
    ... 11 more
[statistics] disconnected

Job EmailJob terminé à 17:51 14/11/2018. [Code sortie=1]

2 个答案:

答案 0 :(得分:0)

Connection reset面临的错误基本上意味着该连接已被另一端关闭。关于此有很多文章。您可以阅读。

请参阅 send-email-using-talend用于在Talend中创建发送电子邮件的作业。这应该有帮助。

答案 1 :(得分:0)

看起来像它的连接关闭问题。请关闭邮件帐户中的两步验证允许安全性较低的应用,然后再次检查。