RazorMailer icon indicating copy to clipboard operation
RazorMailer copied to clipboard

A standalone console app for parsing and sending email templates using the Razor SDK

Razor Mailer

A standalone console app for parsing and sending email templates using

Running Locally

Configure User Secrets

run the following commands from the solution root folder to add the API key to user secrets

.\> cd .\RazorMailer.WebJob
.\RazorMailer.WebJob> dotnet user-secrets set "AzureWebJobsSendGridApiKeyName" "Your Api Key Name"
.\RazorMailer.WebJob> dotnet user-secrets set "AzureWebJobsSendGridApiKey" "SG._your_api_key_here"

Configure Storage account

Either run the Azure storage emulator or configure your own storage account

.\RazorMailer.WebJob> dotnet user-secrets set "ConnectionStrings:AzureWebJobsStorage" "<insert connnectionstring here>"