mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Format mailer From
field to include name
Updates the messafe `From` field to include the name and email of the sender.
This commit is contained in:
parent
90cbfacacf
commit
66445faeb5
@ -150,7 +150,7 @@ func buildEmailMessage(cmd *m.SendEmailCommand) (*Message, error) {
|
||||
|
||||
return &Message{
|
||||
To: cmd.To,
|
||||
From: setting.Smtp.FromAddress,
|
||||
From: fmt.Sprintf("%s <%s>", setting.Smtp.FromName, setting.Smtp.FromAddress),
|
||||
Subject: subject,
|
||||
Body: buffer.String(),
|
||||
EmbededFiles: cmd.EmbededFiles,
|
||||
|
Loading…
Reference in New Issue
Block a user