Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->Host='mail..com';
- $mail->Hostname='www..net';
- //$mail->SMTPSecure = 'ssl';
- //$mail->Port = 465;
- $mail->SMTPSecure = false;
- $mail->SMTPAuth = true;
- $mail->Username = '';
- $mail->Password = '';
- $mail->setFrom('from@example.com', 'First Last');
- $mail->Subject = 'PHPMailer SMTP test';
- $mail->AltBody = 'This is a plain-text message body';
- $mail->addAddress();
- $mail->msgHTML(file_get_contents('contents.html'), __DIR__);
- $mail->SMTPDebug = 4;
- $mail->isSMTP();
- $mail->SMTPOptions = array(
- 'ssl' => array(
- 'verify_peer' => false,
- 'verify_peer_name' => false,
- 'allow_self_signed' => true
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement