MailSenders 1.0.8

Easily send emails from AOL, GMail, Mail, Outlook, Yahoo, Yandex and Zoho.

Install-Package MailSenders -Version 1.0.8
dotnet add package MailSenders --version 1.0.8
<PackageReference Include="MailSenders" Version="1.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MailSenders --version 1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GMail
1.
https://myaccount.google.com/lesssecureapps -> Allow apps that use less secure sign-in
2.
var Sender = new GMailSender("yourmail@gmail.com", "password");

Sender.Failed += () => Console.WriteLine("Failed");
Sender.Sended += () => Console.WriteLine("Sended");

Sender.SendAsync("Title", "Message", "recipient@anymail.com", Attachment.FromFile(@"Photo.jpg"));

Console.ReadKey();

­

­

You can read more about it Here.
I recommend MailBody for creating great messages.
GMail
1.
https://myaccount.google.com/lesssecureapps -> Allow apps that use less secure sign-in
2.
var Sender = new GMailSender("yourmail@gmail.com", "password");

Sender.Failed += () => Console.WriteLine("Failed");
Sender.Sended += () => Console.WriteLine("Sended");

Sender.SendAsync("Title", "Message", "recipient@anymail.com", Attachment.FromFile(@"Photo.jpg"));

Console.ReadKey();

­

­

You can read more about it Here.
I recommend MailBody for creating great messages.

Release Notes

1.0.8 - overload for Sender.Send/Async: e-mail priority
1.0.7 - overload for Sender.Send/Async: reply email address
1.0.6 - overload for Sender.Send/Async: sender's name
1.0.5 - overload for Attachment.FromFile: base name / display name

  • .NETCoreApp 2.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.8 240 10/20/2019
1.0.4 93 10/14/2019
1.0.1 55 9/28/2019
1.0.0 39 9/26/2019