Jump to content

genxer

Members
  • Posts

    11
  • Joined

  • Last visited

genxer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I saw a lot error. I will try it and write here result.
  2. I deleted this line just for test. But still blank white page... I think have different poblem
  3. I guess it's my fault and not working But I won't take much of your time:) Thanks
  4. I attached my function.php when i upload it i did say viewing White blank page functions.php
  5. When i add this code my web site is not working. Just blank white page i think for following line cause when delete it my code is normal not syntax error. $body= <<<EOT A password recover was requested, if you didn't make this action please ignore this email. <br /> <br />Your Username: <strong>$username</strong><br />Your Reset Key: <strong>$salt</strong><br /> <br />You can reset your password by accessing the following link: <a href="$url/index.php?a=recover&r=1" target="_blank">$url/index.php?a=recover&r=1</a> EOT; sendRecover('jazzman@gmail.com', 'Wonderful Subject', 'smtp.example.com', 'jazzman@localdomain.com', 'jazzman', $salt, $body);
  6. I added this code in my function.php but it have a syntax problem? Cause i saw an error. i don't understand. Can you send me full code on .txt file? Many thanks for all answer and help.
  7. I hope so wrong way but i need try someting My hosting Linux server, and my hosting provider said we are stopped SMTP on our IIS all hosting server if you want send email you must add SMTP support on your code like PHPmailler they send me a sample php mail form (PHPmailler). How can i integrate it i dont know.
  8. Im try with PhpMailler Still not working. function sendRecover($to, $title, $url, $from, $username, $salt) { require_once("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->Host = "mail.site.com"; // SMTP servers $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "site@site.com"; // SMTP username $mail->Password = "mypass"; // SMTP password $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$title.' <'.$from.'>' . "\r\n"; $subject = 'Password Recovery - '.$title; $message = 'A password recover was requested, if you didn\'t make this action please ignore this email. <br /><br />Your Username: <strong>'.$username.'</strong><br />Your Reset Key: <strong>'.$salt.'</strong><br /><br />You can reset your password by accessing the following link: <a href="'.$url.'/index.php?a=recover&r=1" target="_blank">'.$url.'/index.php?a=recover&r=1</a>'; $mail->From = "site@site.com"; $mail->Fromname = "Genxer"; $mail->AddAddress = $from; $mail->Subject = $subject; $mail->Body = $message; return @mail($to, $subject, $message, $headers); }
  9. Yes it is fine but i need smtp support like PhpMailler but i didn'n integrate it in my function. My php knowledge basic. Regards
  10. Hello, i dont see any error but don't send emails.
  11. Hello, I don't know very good PHP, I have a problem with send email. My hosting working smtp support but i didn't add it. My function doing send recovery password. How can i add smtp support? function sendRecover($to, $title, $url, $from, $username, $salt) { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$title.' <'.$from.'>' . "\r\n"; $subject = 'Password Recovery - '.$title; $message = 'A password recover was requested, if you didn\'t make this action please ignore this email. <br /><br />Your Username: <strong>'.$username.'</strong><br />Your Reset Key: <strong>'.$salt.'</strong><br /><br />You can reset your password by accessing the following link: <a href="'.$url.'/index.php?a=recover&r=1" target="_blank">'.$url.'/index.php?a=recover&r=1</a>'; return @mail($to, $subject, $message, $headers); }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.