Guest User

Untitled

a guest
Jan 6th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $mail = new PHPMailer();
  2. $mail->isSMTP();
  3. $mail->SMTPDebug = 2;
  4. $mail->Debugoutput = 'html';
  5. $mail->SMTPAuth = true;
  6. $mail->SMTPSecure = 'none';
  7. $mail->Host = localhost;
  8. $mail->Port = 25;
  9. $mail->isHTML();
  10. $mail->Username = 'working cpanel email address';
  11. $mail->Password = 'mypassword';
  12. $mail->SetFrom('working cpanel email address');
  13. $mail->Subject = $sub;
  14. $mail->Body = $msg;
  15. $mail->AddAddress($recip);
Add Comment
Please, Sign In to add comment