Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
shalinim1
Contributor III
Contributor III

Exception in component tSendMail_1 (mail) javax.mail.AuthenticationFailedException

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.

17 Replies
Anonymous
Not applicable

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

shalinim1
Contributor III
Contributor III
Author

Thanks for the response Sabrina!

I don't use telnet!

Ravi_Rajagopal
Contributor III
Contributor III

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

shalinim1
Contributor III
Contributor III
Author

I have provided the port number as 587.

 

Thanks,

Shalini0693p000009pUSAAA2.png0693p000009pUSFAA2.png

Anonymous
Not applicable

Hello,

Does it work without using talend tool?

Best regards

Sabrina

Anonymous
Not applicable

Hello,

Are your username and password correct for the mail server connection?

Best regards

Sabrina

shalinim1
Contributor III
Contributor III
Author

yes, It is correct

shalinim1
Contributor III
Contributor III
Author

I haven't tried using outlook

Anonymous
Not applicable

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