fix: email sender and template (#3633)

This commit is contained in:
Livio Amstutz 2022-05-16 09:52:10 +02:00 committed by GitHub
parent d0c1ad2c69
commit 4fcf03c9c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,9 @@ func InitSMTPChannel(ctx context.Context, getSMTPConfig func(ctx context.Context
logging.New().Debug("successfully initialized smtp email channel")
return &Email{
smtpClient: client,
smtpClient: client,
senderName: smtpConfig.FromName,
senderAddress: smtpConfig.From,
}, nil
}

View File

@ -273,7 +273,7 @@
align="center" bgcolor="{{.PrimaryColor}}" role="presentation" style="border:none;border-radius:6px;cursor:auto;mso-padding-alt:10px 25px;background:{{.PrimaryColor}};" valign="middle"
>
<a
href="{{.URL}}" rel="noopener noreferrer" style="display:inline-block;background:{{.PrimaryColor}};color:#ffffff;font-family:{{.FontFamily}};font-size:14px;font-weight:500;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:6px;" target="_blank"
href="{{.URL}}" rel="noopener noreferrer notrack" style="display:inline-block;background:{{.PrimaryColor}};color:#ffffff;font-family:{{.FontFamily}};font-size:14px;font-weight:500;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:6px;" target="_blank"
>
{{.ButtonText}}
</a>