Mail Sending Fails Randomly

Copper Contributor

Hi I'm facing an issue with Microsoft exchange online.
I'm using exchange server for sending mails from my application at port 587 (TLS)
While sending mails some mails sent successfully and few mails get failed even the mail address is valid.
Enabled mail debugging and found that the issue is occurring after the STARTTLS command.

 

STARTTLS^M
220 2.0.0 SMTP server ready^M
EHLO^M
17:51:45.565 [http-bio-80-exec-9] ERROR com.mydomain.service.impl.EmailSendService - Error :
javax.mail.MessagingException: Can't send command to SMTP host

 

 

1 Reply