Send Email error using Office 365

Five Stars

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
Moderator

Re: Send Email error using Office 365

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.