Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mail = new PHPMailer(); // create a new object
- $mail->IsSMTP(); // enable SMTP
- $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
- $mail->SMTPAuth = true; // authentication enabled
- $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail
- $mail->Host = "smtpout.secureserver.net";
- $mail->Port = 465; // or 587
- $mail->IsHTML(true);
- $mail->Username = "contactus@vowsforeternity.com";
- $mail->Password = "xxxxxxx";
- $mail->AddReplyTo('contactus@vowsforeternity.com');
- $mail->From = "contactus@vowsforeternity.com";
- $mail->FromName = "contactus@vowsforeternity.com";
- $mail->IsHTML(true);
- $mail->Subject = "xxxxxxxxxxx";
- $msg='HTML';
- $msg=urlencode($msg);
- $mail->Body =$msg;
- $mail->AddCC("xxxxxxxxxxxxxxx");
- $mail->AddBCC("xxxxxxxxxxxxx");
- $mail->AddAddress("xxxxxxxxxxxx");
- if(!$mail->Send()) {
- echo "Mailer Error: " . $mail->ErrorInfo;
- } else {
- echo "Message has been sent";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement