I am following answer no 8 from the following post:
it is working fine for the gmail. but not working for hotmail and yahoo. i define following smtp server
SMTP Server for hotmail:
smtp.live.com
SMTP Server for yahoo:
plus.smtp.mail.yahoo.com
how this code work for hotmail and yahoo?