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.

All Yahoo servers (IMAP, POP3 and SMTP) don’t use SSL (you can use Connect method) or use implicit SSL (use ConnectSSL method). IMAP and POP3 servers additionally support explicit SSL (you can use Connect method and then secure the channel using StartTLS or STLS methods)

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:

Tags: , , , , , ,

Questions?

Consider using our Q&A forum for asking any questions.