Professional Documents
Culture Documents
Installation: Easendmail Installer
Installation: Easendmail Installer
aspx
Yahoo SMTP server address is "smtp.mail.yahoo.com". It supports both Normal and SSL
connection to do user authentication, and you should use your Yahoo email address as the user
name for ESMTP authentication. For example: your email is "myid@yahoo.com", and then the
user name should be "myid@yahoo.com".
If you want to use SSL connection with Yahoo SMTP server, you must set the port to 465. The
following example codes demonstrate how to send email using Yahoo SMTP server.
Installation
Before you can use the following sample codes, you should download the EASendMail
Installer and install it on your machine at first.
To use EASendMail SMTP Component in your project, the first step is "Add reference of
EASendMail to your project". Please create/open your project with Visual Studio.NET, then
choose menu->"Project"->"Add Reference"->".NET"->"Browse...", and choose the
EASendMail{version}.dll from your disk, click "Open"->"OK", the reference of EASendMail will
be added to your project, and you can start to use EASendMail to send email in your Visual
Basic.NET project.
Because EASendMail has separate builds for .Net Framework, please refer to the following table
and choose the correct dll.
Separate builds of run-time assembly for .Net Framework 1.1, 2.0, 3.5, 4.0 and .Net
Compact Framework 2.0, 3.5.
' The following example codes demonstrate sending email message using Yahoo
SMTP server.
' To get full sample projects, please download and install EASendMail on
your machine.
' To run it correctly, please change SMTP server, user, password, sender,
recipient value to yours
Module Module1
Sub Main()
Dim oMail As New SmtpMail("TryIt")
Dim oSmtp As New SmtpClient()
' For example: your email is "myid@yahoo.com", then the user should
be "myid@yahoo.com"
oServer.User = "myid@yahoo.com"
oServer.Password = "yourpassword"
' Because yahoo deploys SMTP server on 465 port with direct SSL
connection.
' So we should change the port to 465.
oServer.Port = 465
Try
Catch ep As Exception
End Sub
End Module
http://www.emailarchitect.net/easendmail/kb/vbnet.aspx?cat=3
end Email using Yahoo in VB.NET
Date: Oct 14, 2013
In previous section,I introduced how to send email using Gmail account. In this section, I will
introduce how to send email using Yahoo account in VB.NET.
If you want to use implicit SSL connection with Yahoo SMTP server, you must set the port to
465.
Remarks: All of samples in this section are based on first section: Send email in a simple
VB.NET project. To compile and run the following example codes successfully, please
click here to learn how to create the test project and add reference of EASendMail to your
project.
[VB.NET - Send Email using Yahoo over Implicit SSL on 465 Port - Example]
The following example codes demonstrate how to send email using Yahoo account in VB over
SSL 465 port. To get full sample projects, please refer to Samples section.
Module Module1
Sub Main()
Dim oMail As New SmtpMail("TryIt")
Dim oSmtp As New SmtpClient()
' For example: your email is "myid@yahoo.com", then the user should
be "myid@yahoo.com"
oServer.User = "myid@yahoo.com"
oServer.Password = "yourpassword"
' Because yahoo deploys SMTP server on 465 port with implicit SSL
connection.
' So we should change the port to 465.
oServer.Port = 465
Try
Catch ep As Exception
End Sub
End Module
[VB.NET - Send Email using Yahoo over Explicit SSL (TLS) on 25 or 587 Port - Example]
The following example codes demonstrate how to send email using Yahoo account in VB.NET
over TLS 25 port. To get full sample projects, please refer to Samples section.
Module Module1
Sub Main()
Dim oMail As New SmtpMail("TryIt")
Dim oSmtp As New SmtpClient()
' For example: your email is "myid@yahoo.com", then the user should
be "myid@yahoo.com"
oServer.User = "myid@yahoo.com"
oServer.Password = "yourpassword"
' set 25 port, if you want to use 587 port, please change 25 to 587
oServer.Port = 25
Try
Catch ep As Exception
End Sub
End Module