kindly elaborate the following statement:

"For maximum compatibility, you need to set both SSL and non-SSL
socket
factories and port numbers and ensure that there is fallback from one
to
the other. SMTP over SSL is port 465, SMTP over plain sockets is port
25
(which is often blocked) or 587 (often not blocked)."

what are the ssl and non-ssl socket factories and port number?
thanks.

On Feb 28, 6:27 pm, Kostya Vasilyev <kmans...@gmail.com> wrote:
> Yes, this makes perfect sense. The code sample you referred to uses SSL
> connection with no fallback to non-SSL connection:
>
>      props.put("mail.smtp.port", _port);
>      props.put("mail.smtp.socketFactory.port", _sport);
>      props.put("mail.smtp.socketFactory.class",
> "javax.net.ssl.SSLSocketFactory");
>      props.put("mail.smtp.socketFactory.fallback", "false");
>
> As a quick fix, change the factory class name from
> javax.net.ssl.SSLSocketFactory to javax.net.SocketFactory or change
> fallback to true.
>
> For maximum compatibility, you need to set both SSL and non-SSL socket
> factories and port numbers and ensure that there is fallback from one to
> the other. SMTP over SSL is port 465, SMTP over plain sockets is port 25
> (which is often blocked) or 587 (often not blocked).
>
> http://kenai.com/projects/javamail
>
> http://kenai.com/projects/javamail/lists
>
> -- Kostya
>
> 28.02.2011 16:12, kamiomar О©╫О©╫О©╫О©╫О©╫:
>
>
>
>
>
>
>
>
>
> > my smtp server port is 27. i changed the port and smtp server but
> > still the code not working throwing the following exception.
>
> > Caused by: java.io.IOException: SSL handshake failure: Failure in SSL
> > library, usually a protocol error
>
> > On Feb 24, 4:36 pm, Kostya Vasilyev<kmans...@gmail.com>  wrote:
> >> What does "not working" mean?
>
> >> The sample uses SSL over port 465, which is pretty standard, but if your 
> >> own
> >> server is configured differently (non-secure port 25, or 587, for example),
> >> then you'll need to adjust your code accordingly.
> >> 24.02.2011 14:12 О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 
> >> "kamiomar"<kamio...@gmail.com>  О©╫О©╫О©╫О©╫О©╫О©╫О©╫:>  i have download 
> >> jar files from the following link:
>
> >>>http://code.google.com/p/javamail-android/downloads/list
> >>> and try the following example:
> >>http://www.jondev.net/articles/Sending_Emails_without_User_Interventi...
>
> >>> but this is working only for gmail not for others.
> >>> I tried with my own SMTP server but not working.
> >>> I think these API's is for only gmail.
> >>> may I correct?
> >>> if yes then how we can connect with different smtp server and send
> >>> emails?
> >>> Thanks.
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to android-developers@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> android-developers+unsubscr...@googlegroups.com
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/android-developers?hl=en
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to