Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Send Email error using Office 365

Hi
I am trying to send an email from my job - for notification purposes. But the following error occurs
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
The smtp server is smtp.office365.com
Port is 587 (Tried port 25 also - did not work)
The user account is of the form email@mycompany.com
Thanks
Regards
Sid
Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi Sid,
It seems that Client was not authenticated to send anonymous mail during MAIL FROM. Have you checked "SSL Support" option in tSendmail component?
The smtp server is smtp.office365.com
Port is 587 (Tried port 25 also - did not work)

Have you tried to use these parameters:
SMTP setting
Server name: smtp.office365.com
Port: 587
Encryption method: TLS ?

Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,

 

I have a similar problem to this.  My environment is Talend 7.2.1 / OpenJDK (Zulu 😎 on a Windows 2012 platform.

Settings used:

address: smtp.office365.com

port: 587

STARTTLS = True

 

I get javax.mail.AuthenticationFailedException

 

If I change to port 25 and turn off STARTTLS I get:

com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM

 

I have Need authentication checked and user@company.com/password supplied in the appropriate fields.

 

Any help would be greatly appreciated.

 

Cheers,

Brad

Anonymous
Not applicable
Author

Hello siddharthk ,

 

Check if you can get any response from TELNET Commands to confirm if your SMTP Port and Host are correct and if it has permissions to send and receive emails.

 

TELNET will help you to identify if the issue is with Talend Job or Company Permissions.

 

In case if you need help with TELNET Commands check below commands

 

Open Command Prompt with Admin access 

 
telnet <SMTP HOST> <SMTP PORT>
HELO <SMTP HOST>
mail from: Talendjobtest@testjob.com
rcpt to:<CompanyEmailId>
data
Subject: My Telnet Test Email

Hello,

This is an email sent by using the telnet command.

Your friend,
Me

.
 

Press Enter after above dot. And check your inbox if you received the email.