Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set multiple SMTP server in android?

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.

like image 224
Richa Avatar asked Oct 21 '11 10:10

Richa


People also ask

Can I use a different SMTP server for sending mail?

You can send messages via multiple SMTP servers for various reasons. First, to improve reliability (if the main server is down, sending may still succeed via the backup server). Another case would be increased performance when sending multiple e-mails.


1 Answers

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;
like image 50
PVS Avatar answered Oct 09 '22 14:10

PVS