Re: [android-developers] Re: is javamail-android API work with other smtp server...
David, your message is an offtopic in this thread, but look at this slide: http://www.slideshare.net/rocboronat/hello-googlemaps Look for the 15th slide. And use your own .keystore instead of the debug debug.keystore. Bests, Roc Boronat http://rocboronat.net 2011/3/4 David Toledo dtole...@gmail.com Hi All How could the get the production key for The Google Maps API Thanks David -- 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 -- 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
[android-developers] Re: is javamail-android API work with other smtp server...
thanks kostya Vasilyev for helping me. i resolved the problem. only one thing left jondev.net code not working with hotmail. i think this issue also reported. checkout the following link: http://code.google.com/p/javamail-android/issues/list if it is possible through hotmail please inform me. Thanks once again. On Mar 2, 1:24 pm, Kostya Vasilyev kmans...@gmail.com wrote: 02.03.2011 9:14, kamiomar : 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). That is - if you need to support different mail servers, not just one. One mail server may accept mail on port 587 with no encryption, another use port 465 with SSL, etc. The example on jondev.net is hard-coded for port 465 with SSL, which is why you're getting an SSL socket exception when trying to talk to a server that doesn't use SSL. If on the other hand you only need to support one server, then just use the correct values for that one server. what are the ssl and non-ssl socket factories and port number? thanks. I listed them above, you can also find them in SMTP RFCs, Wikipedia, or many other places. JavaMail has its own site and mailing lists (I posted them in my previous message), please use those if you have further JavaMail questions. -- 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
Re: [android-developers] Re: is javamail-android API work with other smtp server...
Hi All How could the get the production key for The Google Maps API Thanks David -- 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
Re: [android-developers] Re: is javamail-android API work with other smtp server...
02.03.2011 9:14, kamiomar пишет: 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). That is - if you need to support different mail servers, not just one. One mail server may accept mail on port 587 with no encryption, another use port 465 with SSL, etc. The example on jondev.net is hard-coded for port 465 with SSL, which is why you're getting an SSL socket exception when trying to talk to a server that doesn't use SSL. If on the other hand you only need to support one server, then just use the correct values for that one server. what are the ssl and non-ssl socket factories and port number? thanks. I listed them above, you can also find them in SMTP RFCs, Wikipedia, or many other places. JavaMail has its own site and mailing lists (I posted them in my previous message), please use those if you have further JavaMail questions. -- 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
[android-developers] Re: is javamail-android API work with other smtp server...
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 Vasilyevkmans...@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 О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ kamiomarkamio...@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
[android-developers] Re: is javamail-android API work with other smtp server...
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 -- 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
Re: [android-developers] Re: is javamail-android API work with other smtp server...
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 Vasilyevkmans...@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 пользователь kamiomarkamio...@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