Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "../mailer/PHPMailerAutoload.php";
- $mail = new PHPMailer;
- $mail->isSMTP(); // Set mailer to use SMTP
- $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
- $mail->SMTPAuth = true; // Enable SMTP authentication
- $mail->Username = $outputMail['email']; // SMTP username
- $mail->Password = $outputMail['pass']; // SMTP password
- $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
- $mail->Port = 587; // TCP port to connect to
- $mail->AddReplyTo("myemail@domain.com");
- $mail->From = "myemail@domain.com";
- $mail->FromName = "My Business";
- $mail->addAddress($email); // Add a recipient
- $mail->isHTML(true); // Set email format to HTML
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement