Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

A simple abstraction for sending emails.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license_apache.txt
MIT
license_mit.txt
Notifications You must be signed in to change notification settings

messerli-informatik-ag/email

Repository files navigation

Note
This project is no longer actively maintained.

Email

Build NuGet

A simple abstraction for sending emails.

Example

var mailCatcherConfig = new SmtpServerConfig(host: "localhost", port: 1025, useSsl: false);
var sender = new EmailSenderBuilder().Build(new EmailDelivery.SmtpDelivery(mailCatcherConfig));
var message = new EmailMessageBuilder()
  .From(new MailboxAddress("pitcher@localhost", "Pitcher"))
  .AddRecipient(new MailboxAddress("mailcatcher@localhost", "MailCatcher"))
  .Subject("Catch me if you can")
  .AddBodyPart(new BodyPart.Alternatives(
      new BodyPart.Plain("Hello there"),
      new BodyPart.Html("<b>Hello there</b>")))
  .Build();
await sender.SendMessage(message);

About

A simple abstraction for sending emails.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license_apache.txt
MIT
license_mit.txt

Stars

Watchers

Forks

Packages

No packages published

Languages