Open GoogleCodeExporter opened 8 years ago
Here are the properties I used to get smtp.live.com to work with
javamail-android:
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.port", _port); //This was 25
props.put("mail.smtp.socketFactory.port", _sport); //This was 587
props.put("mail.smtp.socketFactory.fallback", "false");
I was using a GMail sample to do it and found that this line was interfering
with the smtp.live.com mail sending, so I commented it out:
//props.put("mail.smtp.socketFactory.class",
// "javax.net.ssl.SSLSocketFactory");
If I didn't comment it out, this is the error message I'd get
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first
Original comment by mend...@gmail.com
on 23 Apr 2011 at 1:19
Original issue reported on code.google.com by
ad...@googoosoftware.com
on 3 Oct 2010 at 9:45