Replace logo URL in email with current server instance.

This commit is contained in:
Jared 2020-12-18 07:51:54 -08:00 committed by Jared Goodwin
parent cd079de811
commit 8353437b87
5 changed files with 5 additions and 5 deletions

View File

@ -264,7 +264,7 @@ namespace Remotely.Server.API
var inviteURL = $"{Request.Scheme}://{Request.Host}/Invite?id={newInvite.ID}";
var emailResult = await EmailSender.SendEmailAsync(invite.InvitedUser, "Invitation to Organization in Remotely",
$@"<img src='https://remotely.one/media/Remotely_Logo.png'/>
$@"<img src='{Request.Scheme}://{Request.Host}/images/Remotely_Logo.png'/>
<br><br>
Hello!
<br><br>

View File

@ -65,7 +65,7 @@ namespace Remotely.Server.Areas.Identity.Pages.Account
var emailResult = await _emailSender.SendEmailAsync(
Input.Email,
"Reset Password",
$"<img src='https://remotely.one/media/Remotely_Logo.png'/><br><br>Please reset your Remotely password by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.");
$"<img src='{Request.Scheme}://{Request.Host}/images/Remotely_Logo.png'/><br><br>Please reset your Remotely password by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.");
if (!emailResult)
{

View File

@ -160,7 +160,7 @@ namespace Remotely.Server.Areas.Identity.Pages.Account.Manage
var emailResult = await _emailSender.SendEmailAsync(
email,
"Confirm your email",
$"<img src='https://remotely.one/media/Remotely_Logo.png'/><br><br>Please confirm your Remotely account by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.",
$"<img src='{Request.Scheme}://{Request.Host}/images/Remotely_Logo.png'/><br><br>Please confirm your Remotely account by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.",
user.OrganizationID);
if (!emailResult)

View File

@ -127,7 +127,7 @@ namespace Remotely.Server.Areas.Identity.Pages.Account.Manage
var inviteURL = $"{Request.Scheme}://{Request.Host}/Invite?id={newInvite.ID}";
var emailResult = await EmailSender.SendEmailAsync(invite.InvitedUser, "Invitation to Organization in Remotely",
$@"<img src='https://remotely.one/media/Remotely_Logo.png'/>
$@"<img src='{Request.Scheme}://{Request.Host}/images/Remotely_Logo.png'/>
<br><br>
Hello!
<br><br>

View File

@ -109,7 +109,7 @@ namespace Remotely.Server.Areas.Identity.Pages.Account
protocol: Request.Scheme);
await _emailSender.SendEmailAsync(Input.Email, "Confirm your email",
$"<img src='https://remotely.one/media/Remotely_Logo.png'/><br><br>Please confirm your Remotely account by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.");
$"<img src='{Request.Scheme}://{Request.Host}/images/Remotely_Logo.png'/><br><br>Please confirm your Remotely account by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.");
if (_userManager.Options.SignIn.RequireConfirmedAccount)
{