AIM 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AIM --version 1.1.0                
NuGet\Install-Package AIM -Version 1.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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                
#r "nuget: AIM, 1.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. 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                

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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on AIM:

Package Downloads
ZapLib

Docs: https://github.com/LinZap/ZapLib

QNZ.Infrastructure

QNZCMS基础库,ASP.net MVC 5

GitHub repositories

This package is not used by any popular GitHub repositories.