refactor: 邮件发送者增加显示名称

This commit is contained in:
Argo Zhang 2020-02-24 17:44:16 +08:00
parent c010555e0d
commit 7192fe8313
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ namespace Bootstrap.Client.Extensions
{
if (mail == null)
{
mail = new MailMessage(msg.From, msg.To)
mail = new MailMessage(new MailAddress(msg.From, "Bootstrap Admin"), new MailAddress(msg.To))
{
Subject = msg.Title,
IsBodyHtml = true