FluentEmail
FluentEmail copied to clipboard
All in one email sender for .NET. Supports popular senders (SendGrid, MailGun, etc) and Razor templates.
I wanted to send a new email to some addresses stored in a IEnumerable. To make this job a bit simpler I created an extension method to provide an additional...
I added two additional methods that allow to pass multiple addresses of recipients as strings.
It would be useful to support scenarios like registering a SMTP sender and a Logging sender in production.
I am using a very basic version with the call: ` var email = Email .From("[email protected]") .To("[email protected]") .Subject("Errors founds in " + _context.LocationName) .Body(strMyText, false).Send();` This is my setup in...
# Changes - Fixed incorrect namespaces - Added namespace to file without namespace This is a breaking change, so if merged at least a minor version bump would be needed...
Changed System.Net.Mime.ContentDisposition.Inline to match Core.Models.Attachment.IsInline. Attachment's Content-Disposition header will be set to "inline" instead of "attachment" when attachment is marked inline, allowing it to be referenced by content-id when using...
services.AddFluentEmail(mailSettings.From) .AddRazorRenderer() // this configuration is working .AddSmtpSender(new System.Net.Mail.SmtpClient() { Host = mailSettings.Host, Port = mailSettings.Port, EnableSsl = mailSettings.UseSsl, Credentials = new System.Net.NetworkCredential(mailSettings.UserName, mailSettings.Password) }); // this configuration with Mailkit...
Fixed missing _inline_ option for content disposition and added relevant unit-tests for this fix
Fixes #201