refactor: 邮件发送者增加显示名称
This commit is contained in:
parent
c010555e0d
commit
7192fe8313
|
@ -192,7 +192,7 @@ namespace Bootstrap.Client.Extensions
|
||||||
{
|
{
|
||||||
if (mail == null)
|
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,
|
Subject = msg.Title,
|
||||||
IsBodyHtml = true
|
IsBodyHtml = true
|
||||||
|
|
Loading…
Reference in New Issue