Skip to content

Add SendEmailWithMailKit sample (.NET 10, MailKit 4.18.1) - #2316

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/50235-aspnetcore-send-email
Oct 20, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/50235-aspnetcore-send-email

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the sample for How to Send Email in ASP.NET Core Web API With Attachments from the separate email-attachments-aspnet-core repository into a new dotnet-client-libraries/SendEmailWithMailKit folder, next to the FluentEmail and SendGrid samples. Both projects target net10.0 with Program.cs only, MailKit 4.18.1 replaces the NETCore.MailKit wrapper, addresses use MailboxAddress.Parse, the SMTP password is no longer in appsettings.json (user secrets in development), and the class library gets the ASP.NET Core framework reference that IFormFileCollection needs.

Moves the How to Send Email in ASP.NET Core sample into CodeMazeGuides: net10.0, Program.cs only, MailKit 4.18.1 in place of NETCore.MailKit, MailboxAddress.Parse, the SMTP password out of appsettings.json, and a framework reference for IFormFileCollection in the class library.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit c6d13a6 into CodeMazeBlog:main Oct 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant