Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'loader/PHPMailerAutoload.php';
- $mail = new PHPMailer(); // create a new object
- $mail->IsSMTP(); // enable SMTP
- $mail->SMTPDebug = 2; // debugging: 1 = errors and messages, 2 = messages only
- $mail->SMTPAuth = true; // authentication enabled
- $mail->SMTPSecure = 'tls'; // seure transfer enabled REQUIRED for GMail
- $mail->Host = "smtp.gmail.com";
- $mail->Port = 587; // or 587 or 465
- $mail->IsHTML(true);
- $mail->Username = "varetti.cupitor@gmail.com";
- $mail->Password = "########";
- $mail->SetFrom("varetti.cupitor@gmail.com");
- $mail->Subject = "Your Digital Download is available";
- $mail->Body = "https://dl.dropboxusercontent.com/u/26430460/1_OGTango_Videos/Tango%20Secrets%201.zip";
- $mail->AddAddress($_POST['email']);
- if(!$mail->Send())
- {
- echo "Mailer Error: " . $mail->ErrorInfo;
- }
- else
- {
- echo "Message has been sent";
- header("Location: http://www.tangodebuenosaires.com/email_thankyou.html");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement