Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have been trying to send an email using outlook mail account. My user name and password provided was correct. And I have provided smtp host as
smtp.office365.com and port number as 587 with starttls support. Yet I could not send an email and throwing Exception as,[statistics] connecting to socket on port 3378
[statistics] connected
Exception in component tSendMail_1 (mail)
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 test.mail_0_1.mail.tSendMail_1Process(mail.java:457)
at test.mail_0_1.mail.runJobInTOS(mail.java:1139)
at test.mail_0_1.mail.main(mail.java:989)
[statistics] disconnected
While connecting to gmail account with smtp host as smtp.gmail.com and port number as 587 was working perfectly.
Could anyone please help me in this issue? Or please provide me with smtp host and password to send mail irrespective of outlook or gmail. since it a company mail id I cant change any settings in my outlook.
Hello,
Are you able to telnet to your it from your machine using the same SMTP/ports/passwords and send mail? Does it work without using talend tool?
Best regards
Sabrina
Thanks for the response Sabrina!
I don't use telnet!
If I read your copy/paste correctly, the connection is appearing to be connecting to a socket on port 3378 and not to port 587. Can you recheck on what is going on in your job please.
Good Luck
Ravi
I have provided the port number as 587.
Thanks,
Shalini
Hello,
Does it work without using talend tool?
Best regards
Sabrina
Hello,
Are your username and password correct for the mail server connection?
Best regards
Sabrina
yes, It is correct
I haven't tried using outlook
Hello,
An AuthenticationFailedException means your username/password combination is not being accepted by the server. Any update from your end? Is it working well from mail server?
Best regards
Sabrina