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.
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.
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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With