Skip to content

Commit 02d89ce

Browse files
committed
https://github.com/umbraco/Umbraco-CMS/issues/11263
Fixes issue where we used the current users email when sending invite emails. Now we use the one from SMTP settings like in v8
1 parent f3f6744 commit 02d89ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.BackOffice/Controllers/UsersController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ private async Task SendUserInviteEmailAsync(UserBasic userDisplay, string from,
557557
// i.e. "Some Person" <[email protected]>
558558
var toMailBoxAddress = new MailboxAddress(to.Name, to.Email);
559559

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

562562
await _emailSender.SendAsync(mailMessage, Constants.Web.EmailTypes.UserInvite, true);
563563
}

0 commit comments

Comments
 (0)