Forgot password

609
.
Simba
Кадило крутится, лавэха мутится
Please replace string

if (mail($res['mail'], $subject, $mail, $adds)) {

to
require 'PHPMailerAutoload.php';

            $mail = new PHPMailer;
            $mail->isSMTP();                                      // Set mailer to use SMTP
            $mail->Host = 'smtp1.example.com;smtp2.example.com';  // Specify main and backup SMTP servers
            $mail->SMTPAuth = true;                               // Enable SMTP authentication
            $mail->Username = 'user@example.com';                 // SMTP username
            $mail->Password = 'secret';                           // SMTP password
            $mail->SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
            $mail->Port = 587;                                    // TCP port to connect to
            $mail->setFrom($set['email'], 'NoReply');
            $mail->addAddress($res['mail'], $res['name']);
            $mail->Subject = $subject;
            $mail->Body    = $mail;
            $mail->AltBody = $mail;

            if ($mail->send()) {


Do not forget to specify the data to connect to the SMTP
.
# Simba (27.01.2016 / 11:01)
Please replace string

if (mail($res['mail'], $subject, $mail, $adds)) {
to

require 'PHPMailerAutoload.php';

$mail = new PHPMailer;
$mail->isSMTP();
Error. part of the content does not show
.
Кадило крутится, лавэха мутится
# huyho (27.01.2016 / 11:24)
Error. part of the content does not show
Download zip from https://github.com/PHPMailer/PHPMailer
Unpack to the directory "users"
.
Кадило крутится, лавэха мутится
Or set correct way to file 'PHPMailerAutoload.php';
.
# Simba (27.01.2016 / 11:29)
Or set correct way to file 'PHPMailerAutoload.php';
i did. Error
.
I creat 1 other file to test this code and it works but skl file isnt works
.
completed. i have to edit $mail to $mail1.
Thankyou so much
Всего: 27