Does anyone know how to configure Umbraco to send user invite email link using the same protocol? For example, we used https://www.ourdomain.com/umbraco to invite a user, but the email generated has the link http:// rather than https://
Can someone please point me to the right direction?
Have seen that file however the protocol / url is managed via a replacement token '%3%'. Wasn't that supposed to use whatever the current url is?(including the protocol)
umbracoApplicationUrl is set as "" in the umbracosettings.config so should be working it out?
@umbracoApplicationUrl
The url of the Umbraco application. By default, Umbraco will figure it out from the first request.
Configure it here if you need anything specific.
src/Umbraco.Web/Editors/UsersController.cs
// Construct full URL using configured application URL (which will fall back to request)
var applicationUri = new Uri(ApplicationContext.UmbracoApplicationUrl);
var inviteUri = new Uri(applicationUri, action);
var emailSubject = Services.TextService.Localize("user/inviteEmailCopySubject",
//Ensure the culture of the found user is used for the email!
UserExtensions.GetUserCulture(to.Language, Services.TextService));
var emailBody = Services.TextService.Localize("user/inviteEmailCopyFormat",
//Ensure the culture of the found user is used for the email!
UserExtensions.GetUserCulture(to.Language, Services.TextService),
new[] { userDisplay.Name, from, message, inviteUri.ToString(), fromEmail });
ah right! will try this setting.. this was out of my mind since we had issues on some projects setting this to true but can't exactly recall the problem.. but will give a try and get back to you..
have figured out why, the client used the cloudflare SSL while non on the origin server.. solution was to let client install the certificate as well on the origin server and set the config umbracoUseSSL to true. :)
User invite email to use same protocol
Hi,
Does anyone know how to configure Umbraco to send user invite email link using the same protocol? For example, we used https://www.ourdomain.com/umbraco to invite a user, but the email generated has the link http:// rather than https://
Can someone please point me to the right direction?
Thanks, Mark
Hi Mark,
The HTML for the user invite email are stored in the /Umbraco/Config/Lang/en.xml
If you havenĀ“t added anything to the file, then you should be able to find it about line 1904
Hope this helps,
/Dennis
Hi Dennis,
Have seen that file however the protocol / url is managed via a replacement token '%3%'. Wasn't that supposed to use whatever the current url is?(including the protocol)
Regards, Mark
Looking for this too.. the lang file only contains a replacement token %3% for the href though?
It does look like this should be working..
umbracoApplicationUrl is set as "" in the umbracosettings.config so should be working it out?
Have you set
umbracoUseSSL
in web.config totrue
?https://our.umbraco.org/Documentation/Reference/Config/webconfig/#umbracousessl
ah right! will try this setting.. this was out of my mind since we had issues on some projects setting this to true but can't exactly recall the problem.. but will give a try and get back to you..
thanks Dan!
have figured out why, the client used the cloudflare SSL while non on the origin server.. solution was to let client install the certificate as well on the origin server and set the config umbracoUseSSL to true. :)
is working on a reply...