Domails repair

This commit is contained in:
José Luis Garrido Labrador
2018-10-21 21:42:51 +02:00
parent 0b89d4ee91
commit 4cb7fb7296

View File

@@ -3,7 +3,7 @@
function newUser($email,$nick,$token){
global $app;
$header = 'From: CodeShare ' . "contacto@jkanetwork.com\r\n";
$header = "From: CodeShare <contacto@jkanetwork.com>\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=UTF-8";
$to = $email;
@@ -16,7 +16,7 @@ function newUser($email,$nick,$token){
function restorePassword($email,$nick,$token,$timestamp){
global $app;
$header = 'From: CodeShare ' . "contacto@jkanetwork.com\r\n";
$header = "From: CodeShare <contacto@jkanetwork.com>\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=UTF-8";
$to = $email;
@@ -25,5 +25,4 @@ function restorePassword($email,$nick,$token,$timestamp){
<p>If this was a mistake, just ignore this email and nothing will happen.</p>
<p>To restore your password please, click in the next link: <a href='https://codeshare.jkanetwork.com/$url'>https://codeshare.jkanetwork.com/$url</a></p>";
mail($to,"Restore password to $nick",$correo,$header);
}