Mail Sending Fails Randomly

%3CLINGO-SUB%20id%3D%22lingo-sub-2887326%22%20slang%3D%22en-US%22%3EMail%20Sending%20Fails%20Randomly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2887326%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20I'm%20facing%20an%20issue%20with%20Microsoft%20exchange%20online.%3CBR%20%2F%3EI'm%20using%20exchange%20server%20for%20sending%20mails%20from%20my%20application%20at%20port%20587%20(TLS)%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3EWhile%20sending%20mails%20some%20mails%20sent%20successfully%20and%20few%20mails%20get%20failed%20even%20the%20mail%20address%20is%20valid.%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3EEnabled%20mail%20debugging%20and%20found%20that%20the%20issue%20is%20occurring%20after%20the%20STARTTLS%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ESTARTTLS%5EM%0A220%202.0.0%20SMTP%20server%20ready%5EM%0AEHLO%5EM%0A17%3A51%3A45.565%20%5Bhttp-bio-80-exec-9%5D%20ERROR%20com.mydomain.service.impl.EmailSendService%20-%20Error%20%3A%0Ajavax.mail.MessagingException%3A%20Can't%20send%20command%20to%20SMTP%20host%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2887326%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

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