This topic is locked
[SOLVED]

 Activation Email

7/27/2020 7:29:07 PM
PHPRunner General questions
M
mhollibush author

A lot of providers are blocking the "activation" link sent via email due to the http
I need to switch the email templates %url% , %activateurl% , and %reseturl% to https
where do I do this?

M
MikeT 7/27/2020

I think it's ultimately read dynamically and then constructed from the server configuration, by e.g. reading $_SERVER["HTTPS"]

Which means you should probably check your server configuration.

Sergey Kornilov admin 7/28/2020

It will use HTTPS automatically if your project runs under HTTPS. Just make sure you run one of the latest versions of PHPRunner.

Myr0n 7/28/2020

I use .htaccess to force http to https in my server production.

here is what I have in my .htaccess that is in my root directory.

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


even if the user try to use http only automatically change to https

M
mhollibush author 7/29/2020



I use .htaccess to force http to https in my server production.

here is what I have in my .htaccess that is in my root directory.

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


even if the user try to use http only automatically change to https


I did some digging and found where I needed to change it...

I use the Members template in my project and for some reason the email being send out is configured for http and also using a port



$http_full="http://".$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI";];



I removed the port from the string and changed the http: to https: and everything is happy now.
Yes, I also configured the .htaccess to force https as well.