Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->isSMTP();
- $mail->SMTPDebug = 2;
- $mail->Debugoutput = 'html';
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = 'none';
- $mail->Host = localhost;
- $mail->Port = 25;
- $mail->isHTML();
- $mail->Username = 'working cpanel email address';
- $mail->Password = 'mypassword';
- $mail->SetFrom('working cpanel email address');
- $mail->Subject = $sub;
- $mail->Body = $msg;
- $mail->AddAddress($recip);
Add Comment
Please, Sign In to add comment