Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $subject="Forgot Password";
- $email="lss.schofield@msn.com";
- $msg="Test Password Test.";
- $smtp_mail_from = 'no-reply@wow-s.22web.net';
- $smtp_mail_from_name = 'Lss';
- $smtp_host = 'smtp.gmail.com';
- $smtp_port = '465'; // for test side 465 with SSL port will be used local with 587
- $smtp_username = 'mrstipt@gmail.com';
- $smtp_password = '*************';
- $email =$aEmailRec[0]->FROM_ADDR;
- $subject = $aEmailRec[0]->SUBJECT;
- $mail = new PHPMailer();
- $mail->From = $smtp_mail_from;
- $mail->FromName = $smtp_mail_from_name;
- $mail->Subject =$subject;
- $mail->Mailer = "smtp";
- $mail->SMTPAuth = true;
- $mail->SMTPDebug = true;
- $mail->SMTPSecure = "ssl";
- $mail->Host = $smtp_host;
- $mail->Port = $smtp_port;
- $mail->Username = $smtp_username;
- $mail->Password = $smtp_password;
- $to = $email;
- $mail->Body = $msg;
- $mail->IsHTML(true);
- $mail->AddAddress($to);
- $success = $mail->Send();
- echo"yes";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement