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:

Tags:       

Questions?

Consider using our Q&A forum for asking questions.