AOL: IMAP, POP3, and SMTP settings

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

All AOL servers (IMAP, POP3 and SMTP) can work in plain mode (you can use Connect method) or use implicit SSL (use ConnectSSL method) or use explicit SSL (you can use Connect method and then secure the channel using StartTLS or STLS methods)

IMAP

Server: imap.aol.com
SSL: true-implicit
Port: 993 (default)
User: pat@yahoo.com

POP3

Server: pop.aol.com
SSL: true-implicit / true-explicit
Port: 995 (default) / 110 (default)
User: pat@aol.com

SMTP

Server: smtp.aol.com
SSL: false / true-implicit / true-explicit
Port: 587 (default) / 465 (default) / 587 (default)
User: pat@aol.com

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

// C#

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

using (Pop3 client = new Pop3())
{
    client.ConnectSSL("pop3.aol.com");
    client.UseBestLogin("pat@aol.com", "password");
    ...
}

using (Smtp client = new Smtp ())
{
    client.ConnectSSL("smtp.aol.com");
    client.UseBestLogin("pat@aol.com", "password");
    ...
}
' VB.NET

Using client As New Imap()
	client.ConnectSSL("imap.aol.com")
	client.UseBestLogin("pat@aol.com", "password")
	...
End Using

Using client As New Pop3()
	client.ConnectSSL("pop3.aol.com")		
	client.UseBestLogin("pat@aol.com", "password")
	...
End Using

Using client As New Smtp()
	client.ConnectSSL("smtp.aol.com")
	client.UseBestLogin("pat@aol.com", "password")
	...
End Using

You can find more details about using implicit and explicit SSL or TLS with email protocols:

Hotmail: IMAP, POP3, and SMTP settings

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

Outlook: IMAP, POP3, and SMTP settings

Outlook.com supports access via POP3 and SMTP protocols. Below you can find the configuration settings for those protocols.

All Outlook.com servers (POP3 and SMTP) use implicit SSL (use ConnectSSL method).
SMTP server also 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@outlook.com

POP3

Server: pop-mail.outlook.com
SSL: true-implicit
Port: 995 (default)
User: pat@outlook.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@outlook.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@outlook.com", "password");
    ...
}

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

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

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

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

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

Yahoo: IMAP, POP3, and SMTP settings

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

Yahoo may not accept your main account password, consider following solutions:

  • Generate and use third-party app password.
    • Go to Account Info/Account Security/Manage app password
    • Generate a new application password
  • Use OAuth 2.0

All Yahoo servers (IMAP, POP3 and SMTP) require SSL/TLS. SMTP additionally supports explicit SSL (you can use Connect method and then secure the channel using StartTLS .

IMAP

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

POP3

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

SMTP

Server: smtp.mail.yahoo.com
SSL: false / true-implicit
Port: 587 (default) / 465 (default)
User: pat@yahoo.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.yahoo.com");
    client.UseBestLogin("pat@yahoo.com", "password");
    ...
}

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

using (Smtp client = new Smtp ())
{
    client.ConnectSSL("smtp.mail.yahoo.com");
    client.UseBestLogin("pat@yahoo.com", "password");
    ...
}
' VB.NET

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

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

Using client As New Smtp()
	client.ConnectSSL("smtp.mail.yahoo.com")
	client.UseBestLogin("pat@yahoo.com", "password")
	...
End Using

You can find more details about using implicit and explicit SSL or TLS with email protocols:

Gmail: IMAP, POP3, and SMTP settings

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

Remember that you must enable IMAP in Gmail or enable POP3 in Gmail first.

All Gmail servers (IMAP, POP3 and SMTP) use implicit SSL/TLS – use ConnectSSL method. SMTP additionally supports explicit SSL/TLS (you can use Connect method and then secure the channel using StartTLS .

IMAP

Server: imap.gmail.com
SSL: true-implicit
Port: 993 (default)
User: pat@gmail.com or pat@your-domain.com

POP3

Server: pop.gmail.com
SSL: true-implicit
Port: 995 (default)
User: pat@gmail.com or pat@your-domain.com

SMTP

Server: smtp.gmail.com
SSL: true-implicit / true-explicit
Port: 465 (default) / 587 (default)
User: pat@gmail.com or pat@your-domain.com

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

// C#

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

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

using (Smtp client = new Smtp ())
{
    client.ConnectSSL("smtp.gmail.com");
    client.UseBestLogin("pat@gmail.com", "password");
    ...
}
' VB.NET

Using client As New Imap()
	client.ConnectSSL("imap.gmail.com")
	client.UseBestLogin("pat@gmail.com", "password")
	...
End Using

Using client As New Pop3()
	client.ConnectSSL("pop.gmail.com")		
	client.UseBestLogin("pat@gmail.com", "password")
	...
End Using

Using client As New Smtp()
	client.ConnectSSL("smtp.gmail.com")
	client.UseBestLogin("pat@gmail.com", "password")
	...
End Using

How to download emails from Gmail.

You can find more samples in each section: