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: false / true, implicit / true, explicit
Port: 143 (default) / 993 (default) / 143 (default)
User: pat@yahoo.com
POP3
Server: pop.mail.yahoo.com
SSL: false / true, implicit / true, explicit
Port: 110 (default) / 995 (default) / 110 (default)
User: pat@yahoo.com
SMTP
Server: smtp.mail.yahoo.com
SSL: false / true, implicit
Port: 586 (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: