Email (SendGrid / MailHog)¶
Local (MailHog)¶
Development: MailHog na porcie 1025/8025
Production (SendGrid)¶
var client = new SendGridClient(apiKey);
var message = MailHelper.CreateSingleEmail(from, to, subject, text, html);
await client.SendEmailAsync(message);
Szablony¶
Email templates dla faktur, powiadomień, etc.