AIM 1.1.0

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
Install-Package AIM -Version 1.1.0
dotnet add package AIM --version 1.1.0
<PackageReference Include="AIM" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AIM --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AIM, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AIM as a Cake Addin
#addin nuget:?package=AIM&version=1.1.0

// Install AIM as a Cake Tool
#tool nuget:?package=AIM&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Aegis Implicit Mail (AIM)

Aegis Implicit Mail is a free and open source library that is designed to provide a fast and developer-friendly API to send emails using SMTP ports.

Why AIM

Sadly, Microsoft.Net.Mail Ssl Mails does not support Implicit Ssl Mail and it is still used by many servers, including port 465 of Gmail here AIM comes to make a readable and fast alternative to send your smtp mails.

Download

Binaries are available in the form of NuGet package

Getting the Code

To get a local copy of the current code, clone it using git:

$ git clone https://github.com/nilnull/AIM.git

Write the code!

If you want to have a sample SMTP mailing, you can write your program exactly like the way you write using System.Net.Mail


 private void SendEmail()
 {
     var mail = "you@gmail.com";
     var host = "smtp.gmail.com";
     var user = "yourUserName";
     var pass = "yourPassword";
     
     //Generate Message 
     var mymessage = new MimeMailMessage();
     mymessage.From = new MimeMailAddress(mail);
     mymessage.To.Add(mail);
     mymessage.Subject = "test";
     mymessage.Body = "body";
     
     //Create Smtp Client
     var mailer = new MimeMailer(host, 465);
     mailer.User= user;
     mailer.Password = pass;
     mailer.SslType = SslMode.Ssl;
     mailer.AuthenticationMode = AuthenticationType.Base64;
     
     //Set a delegate function for call back
     mailer.SendCompleted += compEvent;
     mailer.SendMailAsync(mymessage);
 }

 //Call back function
 private void compEvent(object sender, AsyncCompletedEventArgs e)
 {
     if (e.UserState!=null)
         Console.Out.WriteLine(e.UserState.ToString());
     
     Console.Out.WriteLine("is it canceled? " + e.Cancelled);

     if (e.Error != null)
             Console.Out.WriteLine("Error : " + e.Error.Message);
 }

As you might be familiar with System.Net.Mail, we have four important objects in sending mails:

  1. Mail Message
  2. Addresses
  3. Attachment
  4. sender

For each mail you need to generate mail message,

  1. Set addresses
  2. Add attachments
  3. Send it using a smtp sender

AIM uses the same architecture. We have normal (mime) Mails and smime Mails that can be in a plain sender or Ssl Sender in addition Ssl Sender can be implicit and explicit.

More information can be found at our wiki

Features

  • Support for both of S-MIME and Mime Messages
  • Easy to use and well designed, easy to migrate from System.Net.Mail
  • Support for Signed and/or encrypted mail
  • Supports Ssl Type detection (Detects if Mail server is using Implicit (SSL) or Explicit (TLS) smtp)
  • Support Base64, PlainText and default credential Authentication
  • Asynchronous Mail Sending
  • Support None Ssl Mails
  • Support Inline and Attached Attachments.
  • Signed and Encrypted attachments
  • Fast and reliable
  • Made by developers for developers
  • Test Connection Settings
  • Auto Detection of Ssl Type
  • Support Office 365
  • Support display name

Archive

Please check our archive here

Development Team

AIM is delivered by NilNull from PKI.Tools with special thanks to those who help us :

  • Eugene Jenihov
  • Dénes Gál-Szász
  • galdenny
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AIM:

Package Downloads
QNZ.Infrastructure

QNZCMS基础库,ASP.net MVC 5

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 656 2/4/2022
1.1.0 7,642 11/19/2020
1.0.3 53,573 2/13/2017
1.0.2 15,571 1/19/2015
1.0.1 1,546 10/20/2014
1.0.0 1,549 9/29/2014