A C# project using Blazor to create a simple Purchase Order System, incorporating Syncfusion controls and using Dapper to link to a SQL database.
This video shows how to send an order by email using SendGrid. As an alternative to MailKit this video describes how to set up a SendGrid account, verify a sender email address and obtain an api key. With those steps complete we then create a C# service to send an email and then use that to send an email from the Purchase Order page (basically one line of code in place of the MailKit call). Inadvertently the video also shows what happens if things are not set up correctly, with a popup Toast message notifying the user of the error.
00:00 - Introduction
01:29 - SendGrid Sender Verification and API Key
05:18 - Install SendGrid NuGet package
06:06 - appsettings.json
06:49 - Email sender service using SendGrid
09:25 - Startup.cs changes
10:25 - Purchase Orders - sending email via SendGrid
12:15 - Testing, with errors!
12:43 - Getting it working...
Syncfusion: https://www.syncfusion.com/products/c...
Blazorcode: https://blazorcode.uk/purchaseorders/...
Code: https://blazorcode.uk/purchaseorders/...