我一直在尝试从数据库中提取数据并通过电子邮件导出附件。
但是,尝试时出现以下错误:
[statistics] connecting to socket on port 3477
[statistics] connected
Exception in component tSendMail_1 (ABC)
javax.mail.AuthenticationFailedException: failed to connect
at javax.mail.Service.connect(Service.java:322)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javax.mail.Transport.send0(Transport.java:190)
at javax.mail.Transport.send(Transport.java:120)
at local_project.ABC_2_0.ABC.tSendMail_1Process(ABC.java:1186)
at local_project.ABC_2_0.ABC.tDBInput_2Process(ABC.java:924)
at local_project.ABC_2_0.ABC.runJobInTOS(ABC.java:1467)
at local_project.ABC_2_0.ABC.main(ABC.java:1318)
[statistics] disconnected
Job ABC ended at 14:46 11/08/2018. [exit code=1]
有人可以帮我吗?
答案 0 :(得分:0)
请检查3477端口是否打开以发送邮件,然后重试