Monday, 27 December 2010

SMTP/POP3 Settings for GMAIL, HOTMAIL, YAHOO, AOL, AIM

Gmail:
Incoming Mail server (POP3): pop.gmail.com
Port Number: 995
Outgoing Mail server (SMTP): smtp.gmail.com
Port number: 995
The Google Gmail SMTP Server requires an encrypted connection (SSL) on port 465.

HOTMAIL:
Incoming Mail server (POP3): pop3.live.com
Port Number: 995
Outgoing Mail server (SMTP): smtp.live.com
Port number: 25
The HOTMAIL SMTP Server requires an encrypted connection (SSL) on port 995 and even on 25.

YAHOO!!:
Incoming Mail server (POP3): Required Yahoo!! Plus account
Port Number: Required Yahoo!! Plus account
Outgoing Mail server (SMTP): smtp.mail.yahoo.com
Port number: 587

AOL/AIM:
Incoming Mail server (POP3): imap.aol.com
Port Number: 143
Outgoing Mail server (SMTP): smtp.aol.com
Port number: 587

Sample code OUTGOING:
SmtpClient sC = new SmtpClient("smtp.gmail.com");
sC.Port = 587;
sC.Credentials = new NetworkCredential(“USERNAME”,”PASSWORD”);
sC.EnableSsl = true;
sC.Send(mM);

Sample code INCOMING:
Pop3 pop3 = new Pop3()
pop3.ConnectSSL("pop3.live.com", 995);
pop3.Login("USERNAME", "PASSWORD");
List<string> uids = pop3.GetAll();
for (int i = totalMesg - 1; i >= 1; i--)
{
IMail email = new MailBuilder().CreateFromEml(pop3.GetMessageByUID(uids[i]));
Console.WriteLine(email.TextData.ToString());
Console.WriteLine(email.Subject);
Console.WriteLine(email.Sender.ToString());
Console.WriteLine(email.Date.ToString());

}
pop3.Close();

Feel Free to Ping me for any kind of help and support!! Thanks!!
~jawed

8 comments:

Anonymous said...

Hello there,

Thanks for sharing this link - but unfortunately it seems to be not working? Does anybody here at jawedm.blogspot.com have a mirror or another source?


Cheers,
Jack

MD.JAWED said...

Hi Jack,
thanks for visiting my blogs. would you please tel me which one is not working for you. because i have used all the above configuration for my purpose and everything is working for me.
please let me know so that i can help you in that!!
Thanks,
Md.Jawed

Anonymous said...

Hey, I am checking this blog using the phone and this appears to be kind of odd. Thought you'd wish to know. This is a great write-up nevertheless, did not mess that up.

- David

Unknown said...

I really learn a lot through this 5 star post! Great Job!

Hotmail Technical Support

Customer Care Phone Number said...

I am impressed your blog because your blog words is very impressiveness for business growths so thanks a lot for sharing this Information.

customer care contact number said...

Nice blog thank you for sharing for this .

microsoft hotmail customer service number said...

Thank you for this information very useful !

Microsoft hotmail helpline number said...

Nice post! Glad that you like their service. I believe that treating the customer so politely makes them so comfortable with your services. Anyway, thanks for sharing. Keep posting.