Forum Discussion
callmeak
Oct 26, 2021Copper Contributor
Mail Sending Fails Randomly
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
Sort By
- EduardoGciaCopper ContributorAre you using TLS 1.0 or 1.1? If so, then here's the answer https://techcommunity.microsoft.com/t5/exchange-team-blog/new-opt-in-endpoint-available-for-smtp-auth-clients-still/ba-p/2659652