- <?php
- // Load Secure PHPMailer
- require '../PHPMailer-master/src/Exception.php';
- require '../PHPMailer-master/src/PHPMailer.php';
- require '../PHPMailer-master/src/SMTP.php';
- require '../PHPMailer-master/src/OAuth.php';
- // Instantiate class and provide invariants
- $mail = new PHPMailer\PHPMailer\PHPMailer();
- $mail->IsSMTP(); // send via SMTP
- $mail->Host = "mail.papamail.net"; // SMTP servers
- $mail->SMTPAuth = true; // turn on SMTP authentication
- $mail->Username = "[email protected]"; // SMTP username
- $mail->Password = "*************"; // SMTP password ("*****" is replaced by
- the correct password)
- $mail->From = "[email protected]";
- $garage_name = $_GET['garage_name'];
- $email_to = $_GET['email_to'];
- $email_subject = $_GET['email_subject'];
- $email_body = $_GET['email_body'];
- // Send Secure Email
- $mail->IsHTML(true);
- $mail->FromName = $garage_name;
- $mail->AddAddress($email_to);
- $mail->Subject = $email_subject;
- $mail->Body = $email_body;
- $mail->send();
- echo "Sent!";
- ?>
[text] Code
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: