VB.NET - SMTP, SSL, TLS, Embedded Images, S/MIME, EWS, Email Queue - Sample Projects

After you downloaded the EASendMail SMTP Component Installer and install it on your machine, there are many samples in the installation path.

All the samples locate at EASendMail Installation Folder. They all demonstrate User authentication, SSL connection and Dns Lookup.

.NET Framework Sample Projects:

  • Samples_VS2003 requires .NET 1.1 or later version.
  • Samples_VS2008 requires .NET 2.0 or later version.
  • Samples_VS2010 requires .NET 4.0 or later version.
  • Samples_VS2012 requires .NET 4.5 or later version.

Project Version

All the samples are built with Visual Studio 2003/2008/2010/2012/2015. If you use different (elder) version of Visual Studio, those projects may not be openned properly. In this case, you need to create a new project in your Visual Studio and copy the code in the sample to overwrite your code. For example, if you can’t open simple.vb project with your Visual Studio, create a project with your Visual Studio, then copy form1.vb to overwrite the form1.vb in your project. Re-open your project, and finally add the reference of EASendMail.dll to your project.

asp_net Send email from ASP.NET. (C#, VB, JScript.NET)
asp_net_batch Send bulk emails with multiple threads from ASP.NET. (C#, VB)
asp_net_queue Send email from ASP.NET to EASendMail Service. (C#, VB, JScript.NET)
asp_net_queue_database Send email from ASP.NET to EASendMail Service, EASendMail service will select recipients from database. (C#, VB, JScript.NET)
gmailoauth Send email using Gmail OAUTH/XOAUTH2 (C#, VB, ASP.NET).
simple.vb Send text/plain email from Visual Basic.NET. This sample also demonstrates digital signature, email encryption.
simple.csharp Send text/plain email from C#. This sample also demonstrates digital signature, email encryption.
simple.vc Send text/plain email from managed c++. This sample also demonstrates digital signature, email encryption.
htmlmail.vb Send text/html email from Visual Basic.NET. This sample also demonstrates embedded pictures, digital signature, email encryption.
htmlmail.csharp Send text/html email from C#. This sample also demonstrates embedded pictures, digital signature, email encryption.
mass.vb Send email by BeginSendMail with multiple threadings. This sample also demonstrates email address validating.
mass.csharp Send email by BeginSendMail with multiple threadings. This sample also demonstrates email address testing.
Samples_vs2008\pocketpc.mobile.cs Send email from PocketPC/Windows Mobile System.
Samples_vs2008\pocketpc.mobile.vb Send email from PocketPC/Windows Mobile System.
GmailOAUTH.chsarp Send email using Gmail OAUTH/XOAUTH2 (C#, Windows Application).
GmailOAUTH.vb Send email using Gmail OAUTH/XOAUTH2 (VB, Windows Application).

Windows Store App Projects (Windows 8.1 Metro Style):

Samples_Windows81 requires Windows 8.1 + Visual Studio 2013 or later version.

simple.vb Send text/plain or html email from Visual Basic.NET. This sample also demonstrates file attachments, embedded images. (VB, XAML, WPF, Windows 8 Store App Runtime)
simple.csharp Send text/plain or html email from C#. This sample also demonstrates file attachments, embedded images. (C#, XAML, WPF, Windows 8 Store App Runtime)
simple.js Send text/plain or html email from Javascript. This sample also demonstrates file attachments, embedded images. (Javascript, HTML5, Windows 8 Store App Runtime)
mass.vb Send text/plain or html email from VB.NET with multiple threadings. This sample also demonstrates file attachments, embedded images. (VB, XAML, WPF, Windows 8 Store App Runtime)
mass.csharp Send text/plain or html email from C# with multiple threadings. This sample also demonstrates file attachments, embedded images. (C#, XAML, WPF, Windows 8 Store App Runtime)
mass.js Send text/plain or html email from Javascript with multiple threadings. This sample also demonstrates file attachments, embedded images. (Javascript, HTML5, Windows 8 Store App Runtime)
GmailOAUTH.csharp Send email using Gmail OAUTH/XOAUTH2 (C#, Windows 8.1).
GmailOAUTH.vb Send email using Gmail OAUTH/XOAUTH2 (VB, Windows 8.1).

Universal Windows Platform Projects (Windows 10):

Samples_Windows10 requires Windows 10 + Visual Studio 2015 or later version.

UWP.vb Send text/plain or html email from Visual Basic.NET. This sample also demonstrates file attachments, embedded images. (VB, XAML, WPF, Windows 10 Store App Runtime)
UWP.csharp Send text/plain or html email from C#. This sample also demonstrates file attachments, embedded images. (C#, XAML, WPF, Windows 10 Store App Runtime)
UWP.js Send text/plain or html email from Javascript. This sample also demonstrates file attachments, embedded images. (Javascript, HTML5, Windows 10 Store App Runtime)
UWP.mass.vb Send text/plain or html email from VB.NET with multiple threadings. This sample also demonstrates file attachments, embedded images. (VB, XAML, WPF, Windows 10 Store App Runtime)
UWP.mass.csharp Send text/plain or html email from C# with multiple threadings. This sample also demonstrates file attachments, embedded images. (C#, XAML, WPF, Windows 10 Store App Runtime)
UWP.mass.js Send text/plain or html email from Javascript with multiple threadings. This sample also demonstrates file attachments, embedded images. (Javascript, HTML5, Windows 10 Store App Runtime)
UWP.GmailOAUTH.csharp Send email using Gmail OAUTH/XOAUTH2 (C#, Windows 10).
UWP.GmailOAUTH.vb Send email using Gmail OAUTH/XOAUTH2 (VB, Windows 10).

.ActiveX Object/COM Sample Projects:

  • Samples_VB6 requires Visual Basic 6.0.
  • Samples_Delphi requires Delphi 7.0 or later version.
  • Samples_VC requires Visual Studio 2008 (C++) or later version.
  • Samples_ASP requires IIS.
  • Samples_Script - VBScript/Javascript.
  • Samples_MSSQL - Microsoft SQL Server.
asp Send email from ASP (VBScript, JScript) - ActiveX/COM
asp_queue Send email from ASP to EASendMail Service. (VBScript, JScript) - ActiveX/COM
asp_queue_database Send email from ASP to EASendMail Service, EASendMail service will select recipients from database. (VBScript, JScript) - ActiveX/COM
gmailoauth Send email from ASP using Gmail OAUTH/XOAUTH2 (VBScript, JScript) - ActiveX/COM
simple.vb6 Send text/plain email from Visual Basic 6.0. This sample also demonstrates digital signature, email encryption. (VB6) - ActiveX/COM
simple.delphi Send text/plain email from Delphi. This sample also demonstrates digital signature, email encryption. (Delphi) - ActiveX/COM
simple.vcNative Send text/plain email from Visual C++. This sample also demonstrates digital signature, email encryption. (Visual C++) - ActiveX/COM
htmlmail.vb6 Send text/html email from Visual Basic 6.0. This sample also demonstrates embedded pictures, digital signature, email encryption. (VB6) - ActiveX/COM
htmlmail.vcNative Send text/html email from Visual C++. This sample also demonstrates embedded pictures, digital signature, email encryption. (Visual C++) - ActiveX/COM
html.delphi Send text/html email from Delphi. This sample also demonstrates embedded pictures, digital signature, email encryption.
mass.vb6 Send email by FastSender with multiple threadings. This sample also demonstrates email address validating. (VB6) - ActiveX/COM
mass.vcNative Send email by FastSender with multiple threadings. This sample also demonstrates email address validating. (Visual C++) - ActiveX/COM
mass.delphi Send email by FastSender with multiple threadings. This sample also demonstrates email address validating. (Delphi) - ActiveX/COM
Samples_MSSQL Send email from MS SQL Server stored procedure.
GmailOAUTH.vb6 Send email from VB6 using Gmail OAUTH/XOAUTH2 (VB6) - ActiveX/COM
GmailOAUTH.delphi Send email from Delphi using Gmail OAUTH/XOAUTH2 (Delphi) - ActiveX/COM
GmailOAUTH.vcNative Send email from Visual C++ using Gmail OAUTH/XOAUTH2 (VC++) - ActiveX/COM

Free Email Support

Not enough? Please contact our technical support team.

Support@EmailArchitect.NET

Remarks

We usually reply emails in 24hours. The reason for getting no response is likely that your smtp server bounced our reply. In this case, please try to use another email address to contact us. Your Gmail, Hotmail email account is recommended.

Appendix

Comments

If you have any comments or questions about above example codes, please click here to add your comments.