Posts Tagged ‘Hotmail’

Outlook.com announces IMAP support

Friday, September 13th, 2013

We’re happy to announce that Microsoft finally added IMAP (and OAuth) support for Outlook.com (this includes @hotmail accounts). With yesterday’s announcement, Outlook has a richer email experience across devices and apps.

Here you can find Outlook.com settings.

Hotmail: IMAP, POP3, and SMTP settings

Friday, December 14th, 2012

Hotmail supports access via IMAP, POP3 and SMTP protocols. Below you can find the configuration settings for those protocols.

All Hotmail servers (POP3 and SMTP) use implicit SSL (use ConnectSSL method).
SMTP server supports explicit SSL (you can use Connect method and then secure the channel using StartTLS method)

IMAP

Server: imap-mail.outlook.com
SSL: true-implicit
Port: 993 (default)
User: pat@hotmail.com

POP3

Server: pop-mail.outlook.com
SSL: true-implicit
Port: 995 (default)
User: pat@hotmail.com

POP access must be turned on via web interface.
In the web interface click “gear icon” in the top, right corner, then select “Options”.

Depending on the UI version:

On the options pane click “Mail/Accounts/POP and IMAP”. In the “POP options” section select “Yes”.

-or-

On the options pane click “Connect devices and apps with POP” link. In the “POP” section mark “Enable”.

SMTP

Server: smtp-mail.outlook.com
SSL: true-explicit
Port: 587 (default)
User: pat@hotmail.com

Following are the code samples for Mail.dll .NET IMAP, POP3 and SMTP component.

// C#

using (Imap client = new Imap())
{
    client.ConnectSSL("imap-mail.outlook.com");
    client.UseBestLogin("pat@hotmail.com", "password");
    ...
}

using (Pop3 client = new Pop3())
{
    client.ConnectSSL("pop-mail.outlook.com");
    client.UseBestLogin("pat@hotmail.com", "password");
    ...
}

using (Smtp client = new Smtp ())
{
    client.Connect("smtp-mail.outlook.com");
    client.StartTLS();
    client.UseBestLogin("pat@hotmail.com", "password");
    ...
}
' VB.NET

Using client As New Imap()
	client.ConnectSSL("imap-mail.outlook.com")
	client.UseBestLogin("pat@hotmail.com", "password")
	...
End Using

Using client As New Pop3()
	client.ConnectSSL("pop-mail.outlook.com")		
	client.UseBestLogin("pat@hotmail.com", "password")
	...
End Using

Using client As New Smtp()
	client.Connect("smtp-mail.outlook.com")
	client.StartTLS()
	client.UseBestLogin("pat@hotmail.com", "password")
	...
End Using