Return to site

Mail Designer 365 1 1 2

broken image


The following vb.net example codes demonstrate how to send email over TLS on 25 or 587SMTP port.

Tips: Check the print preview to be sure that the pages will all fit on the sheet. Also, if you are using Publisher 2010, 2013, or 2016, you can use the Front/Back Transparency slider, (in the upper right corner of the preview pane) to be sure that the front and back of the postcard line up correctly. A Microsoft 365 subscription includes premium Outlook features like an ad-free interface, custom domains, enhanced security, the full desktop version of Office apps, and 1 TB of cloud storage.

SSL and TLS¶

Mail Designer 365 1 1 2

SSL connection encrypts data between the SMTP component and SMTP server to protectsuser, password and email content in TCP/IP level. Now this technology is commonlyused and many SMTP servers are deployed with SSL such as Gmail, Yahoo and Hotmail.There are two ways to deploy SSL on SMTP server:

  • Explicit SSL (TLS)

    Using STARTTLS command to switch SSL channel on normalSMTP port (25 or 587);

  • Implicit SSL

    Deploying SSL on another port (465 or other port, you may queryit from your server administrator

TLS 1.2 Protocol¶

TLS is the successor of SSL, more and more SMTP servers require TLS1.2 encryption now.

If your operating system is WindowsXP/Vista/Windows7/Windows2003/2008/2008R2/2012/2012R2, you need toenable TLS 1.2 protocol in your operating system like this:

Installation¶

Before you can use the following codes, please download EASendMail SMTP Component andinstall it on your machine at first. Full sample proejcts are included in this installer.

Install from NuGet

You can also install the run-time assembly by NuGet. Run the following command in the NuGet Package Manager Console:

Mail Designer 365 1 1 20

Note

If you install it by NuGet, no sample projects are installed, only .NET assembly is installed.

Add Reference¶

To use EASendMail SMTP Component in your project, the first step is AddreferenceofEASendMailtoyourproject. Please create or open your project with Visual Studio,then go to menu -> Project -> AddReference -> .NET -> Browse..., and selectInstallationPathLibnet[version]EASendMail.dll from your disk, click Open -> OK, the reference of EASendMailwill be added to your project, and you can start to use it to send emailin your project.

.NET Assembly¶

Because EASendMail has separate builds for .Net Framework, please refer to the followingtable and choose the correct dll.

Separate builds of run-time assembly for .NET Framework 1.1, 2.0, 3.5, 4.0, 4.5, 4.6.1, .NET Core 2.1 and.NET Compact Framework 2.0, 3.5.

File.NET Framework Version
Libnet11EASendMail.dll Built with .NET Framework 1.1
It requires .NET Framework 1.1, 2.0, 3.5 or later version.
Libnet20EASendMail.dll Built with .NET Framework 2.0
It requires .NET Framework 2.0, 3.5 or later version.
Libnet35EASendMail.dll Built with .NET Framework 3.5
It requires .NET Framework 3.5 or later version.
Libnet40EASendMail.dll Built with .NET Framework 4.0
It requires .NET Framework 4.0 or later version.
Libnet45EASendMail.dll Built with .NET Framework 4.5
It requires .NET Framework 4.5 or later version.
Libnet461EASendMail.dll Built with .NET Framework 4.6.1
It requires .NET Framework 4.6.1 or later version.
Libnetcoreapp2.1EASendMail.dll Built with .NET Core 2.1
It requires .NET Core 2.1 or later version.
Libnet20-cfEASendMail.dll Built with .NET Compact Framework 2.0
It requires .NET Compact Framework 2.0, 3.5 or later version.
Libnet35-cfEASendMail.dll Built with .NET Compact Framework 3.5
It requires .NET Compact Framework 3.5 or later version.

VB.NET - Send Email over TLS on 25 or 587 Port - Example¶

The following example codes demonstrate how to send email over TLS connection on 25 or 587 port.In order to run it correctly, please change SMTPserver, user, password, sender, recipient value to yours.

Note

Office 365 1 Time Purchase

To get full sample projects, please download and install EASendMail on your machine.





broken image