Skip to content

Cofoundry mail services that utilize the cross platform MailKit library.

License

Notifications You must be signed in to change notification settings

cofoundry-cms/Cofoundry.Plugins.Mail.MailKit

Repository files navigation

Cofoundry.Plugins.Mail.MailKit

Build status NuGet

This library is a plugin for Cofoundry. For more information on getting started with Cofoundry check out the Cofoundry repository.

Overview

This library allows you to send mail using the cross platform MailKit library. By referencing this package your Cofoundry project will automatically replace the default IMailDispatchService implementation with one that uses MailKit. Use the following settings to configure the service:

  • Cofoundry:Plugins:MailKit:Host Host address of the smtp server to connect with. Defaults to localhost.
  • Cofoundry:Plugins:MailKit:Port The port to connect to the smtp server on. Defaults to 25.
  • Cofoundry:Plugins:MailKit:EnableSsl Indicates whether ssl should be used to connect to the host.
  • Cofoundry:Plugins:MailKit:UserName The user name to authenticate with the smtp server. If left empty then no auth will be used.
  • Cofoundry:Plugins:MailKit:Password The password use when authenticating with the smtp server.
  • Cofoundry:Plugins:MailKit:CertificateValidationMode Used to configure how the ssl certificate is validated. Default uses the default MailKit validator, which allows valid certificates and self-signed certificates with an untrusted root. All ignores all certificate errors. ValidOnly allows only valid certificates without errors.
  • Cofoundry:Plugins:MailKit:Disabled Indicates whether the plugin should be disabled, which means services will not be bootstrapped. Defaults to false.

Custom Connection Configuration

For more control over how MailKit initializes and connects to the SMTP host you can implement your own ISmtpClientConnectionConfiguration and override the default implementation using the Cofoundry DI system.

About

Cofoundry mail services that utilize the cross platform MailKit library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published