Skip to content

Commit

Permalink
https://github.com/umbraco/Umbraco-CMS/issues/11263
Browse files Browse the repository at this point in the history
Fixes issue where we used the current users email when sending invite emails. Now we use the one from SMTP settings like in v8
  • Loading branch information
bergmania committed Oct 4, 2021
1 parent f3f6744 commit 02d89ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ private async Task SendUserInviteEmailAsync(UserBasic userDisplay, string from,
// i.e. "Some Person" <[email protected]>
var toMailBoxAddress = new MailboxAddress(to.Name, to.Email);

var mailMessage = new EmailMessage(fromEmail, toMailBoxAddress.ToString(), emailSubject, emailBody, true);
var mailMessage = new EmailMessage(null /*use info from smtp settings*/, toMailBoxAddress.ToString(), emailSubject, emailBody, true);

await _emailSender.SendAsync(mailMessage, Constants.Web.EmailTypes.UserInvite, true);
}
Expand Down

0 comments on commit 02d89ce

Please sign in to comment.