Using EASendMail SMTP Component

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 "Installation Path\Lib\[netversion]\EASendMail.dll" from your disk, click "Open"->"OK", the reference of
EASendMail will be added to your project, and you can start to use EASendMail SMTP
Component in your project.

Install from NuGet

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

Install-Package EASendMail

Deploying EASendMail SMTP Component with Application

After compiling your project, a copy of EASendMail.dll will be generated by compiler
in same folder of your application executable file. Packing all the *.dll and *.exe
in the folder to installer is ok. As EASendMail is a pure .NET Component, it doesn't
require "Regsvr32" (self-register) to register the dll.

Deploying EASendMail SMTP Component with ASP.NET/Web Application

The EASendMail.dll should be copied to [website root folder]\bin folder or
[virtual directory root]\bin folder. If the project is created by Visual
Studio.NET + FrontPage Extension directly, Visual Studio.NET will deploy EASendMail.dll
automatically.

Built with .NET Framework 1.1
It requires .NET Framework 1.1, 2.0, 3.5 or later version.

Lib\net20\EASendMail.dll

Built with .NET Framework 2.0
It requires .NET Framework 2.0, 3.5 or later version.

Lib\net35\EASendMail.dll

Built with .NET Framework 3.5
It requires .NET Framework 3.5 or later version.

Lib\net40\EASendMail.dll

Built with .NET Framework 4.0
It requires .NET Framework 4.0 or later version.

Lib\net45\EASendMail.dll

Built with .NET Framework 4.5
It requires .NET Framework 4.5 or later version.

Lib\net461\EASendMail.dll

Built with .NET Framework 4.6.1
It requires .NET Framework 4.6.1 or later version.

Lib\netcoreapp2.1\EASendMail.dll

Built with .NET Core 2.1
It requires .NET Core 2.1 or later version.

Lib\net20-cf\EASendMail.dll

Built with .NET Compact Framework 2.0
It requires .NET Compact Framework 2.0, 3.5 or later version.

Lib\net35-cf\EASendMail.dll

Built with .NET Compact Framework 3.5
It requires .NET Compact Framework 3.5 or later version.

Run-time library for .NET Compact Framework 2.0, 3.5

To use EASendMail in .NET Compact Framework 2.0 or 3.5, you should use Lib\net20-cf\EASendMail.dll or Lib\net20-cf\EASendMail.dll
in your project. And if SSL/TLS connection is used in .NET
Compact Framework 2.0 or 3.5, you should also copy "SecurityInterface.dll" to the
same folder of your application.

Note: CF version of EASendMail.dll does not support digital signature, message encryption, domainkeys/DKIM
and direct sending email (DNS lookup).

Install EASendMail SMTP Component to Global Assembly Cache - SSIS

For SQL Server Integration Services (SSIS) or other .NET integrated script platform, it requires external DLL to be installed into .NET Global Assembly Cache.
You can install EASendMail to Global Assembly Cache like this:

If you have Visual Studio installed on your computer: On the taskbar, click
Start, click
All Programs, click
Visual Studio, click
Visual Studio Tools, and then click
Visual Studio Command Prompt. - For Windows Vista or later OS, Please right-click and click "Run As Administrator".

-or-

If you have the Windows SDK installed on your computer: On the taskbar, click
Start, click
All Programs, click the folder for the Windows SDK, and then click
Command Prompt (or
CMD Shell). - For Windows Vista or later OS, Please right-click and click "Run As Administrator".

At the command prompt, type the following: (Please change C:\Program Files (x86)\EASendMail to EASendMail installation path, and change Lib\net35\EASendMail.dll to the DLL that you refered in your project.)

The server syntax is [server ip or domain] [port]. SPACE is used to separate server
address and port. If port is not specified, default port 25 will be used.
For example: localhost 25 or localhost.

Example

[Visual Basic, C#, C++, JScript.NET] The following example demonstrates how to send
email with EASendMail SMTP Component, but it doesn't demonstrates the events usage.
To get the full samples of EASendMail, please refer to Samples
section.