Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mail = new PHPMailer(true);
- $mail->IsSMTP(); // we are going to use SMTP
- $mail->SMTPAuth = true; // Authentication must be disabled
- $mail->SMTPSecure = 'ssl'; // prefix for secure protocol to connect to the server
- $mail->Host = 'smtp.gmail.com'; // setting GMail as our SMTP server
- $mail->Port = 465; // SMTP port to connect to GMail
- $mail->Username = 'emaillocalhost6@gmail.com';
- $mail->Password = 'inipassword';
- $mail->SetFrom('emaillocalhost6@gmail.com', 'Mail'); //Who is sending
- $mail->isHTML(true);
- $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