mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Replace logo URL in email with current server instance.
This commit is contained in:
parent
cd079de811
commit
8353437b87
@ -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>
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user