iCloud: IMAP and SMTP settings

iCloud supports access via IMAP and SMTP protocols, POP3 is not supported. Below you can find the configuration settings for those protocols.

Both (IMAP and SMTP) use implicit SSL (use ConnectSSL method) and explicit SSL (you can use Connect method and then secure the channel using StartTLS method)

IMAP

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

SMTP

Server: smtp.mail.me.com
SSL: true-explicit
Port: 587 (default)
User: pat@icloud.com (not pat)

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

// C#

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

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

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

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

Tags:    

Questions?

Consider using our Q&A forum for asking questions.