android - how to send email from hotmail and yahoo? -


i following answer no 8 following post:

smtp sample code

it working fine gmail. not working hotmail , yahoo. define following smtp server

smtp server hotmail: smtp.live.com  smtp server yahoo: plus.smtp.mail.yahoo.com 

how code work hotmail , yahoo?

read :

  • yahoo smtp settings ,
  • hotmail smtp settings

note port numbers , other details

for example, hotmail

private string mailhost = "smtp.live.com";   

and

props.put("mail.smtp.port", "587");    props.put("mail.smtp.socketfactory.port", "587");   // because of ssl 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -