Ssl false with port 465 does not throw execption for server smtp.gmail.com?

SSMTP is typically on port 465 SMTP is typically on port 25 Try again, but use port : 25 Google might enforce TLS/SSL on 465.

SSMTP is typically on port 465. SMTP is typically on port 25. Try again, but use port : 25.

Google might enforce TLS/SSL on 465.

Throwing error with port 25: com.sun.mail.smtp. SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. Wf3sm4567638icb.9 – Ashish Pancholi Mar 22 at 10:58 Aha!

Looks like Google requires SSL/TLS. Unencrypted doesn't look like an option. – sarnold Mar 22 at 11:02 what I need is : if user provide ssl as false with port 465, then we should prompt him/her for wrong ssl.

Changing port to 25 is not my solution. – Ashish Pancholi Mar 22 at 11:08 Google requires SSL or TLS for SMTP. So if your program is specifically for gmail, then hard-code SSL: true.

If your program is for use with any SMTP server, then feel free to fall back to unencrypted port 25 if 465 is closed or you cannot negotiate a connection. – sarnold Mar 22 at 11:12 Using my java desktop application, user can use any SMTP server. So you are saying we need to hard-code port: 25 with SSL : false.. right?

– Ashish Pancholi Mar 22 at 11:21.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions