8

My question is how to set multiple SMTP server for sending mails in android like : yahoo,hotmail,gmail,rediff any type of domain will worked while sending mail.Can anyone suggest any site or any idea ?

Please Help me,Thank you in advance.

Richa
  • 3,165
  • 1
  • 22
  • 26
  • Maybe this could help you: http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-ap .... I assume you will have to make your own class to manage those smtp's. – Martin Nuc Oct 21 '11 at 11:20
  • i have used same it is working for gmail only,bt not applicable for rest of the domains like yahoo,rediff etc...i have also changed the host as smtp.mail.yahoo.com instead of smtp.mail.gmail.com bt its not working gives Authorization failed erro.... – Richa Oct 21 '11 at 11:33
  • **SMTP server = smtp.mail.yahoo.com, Security type = None, Server port = 587** Please try this for yahoo. – Kannan Suresh Nov 21 '11 at 06:34

1 Answers1

3

Here are tested settings for GMail, Yahoo! and Hotmail. Tested using Javax Mail port for Android.

smtp_host="smtp.gmail.com";
port=465;
tlsEnabled = true;
requiresAuth = false;

smtp_host="smtp.mail.yahoo.com";
port=465;
tlsEnabled = true; // false is OK as well
requiresAuth = true;  // false is OK as well
// login can have yahoo.com suffix OR not

smtp_host="smtp.live.com";
port=587;
tlsEnabled = false;
requiresAuth = true;
PVS
  • 1,168
  • 11
  • 24