Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'mailer/PHPMailerAutoload.php';
- $mail = new PHPMailer;
- //$mail->SMTPDebug = 3; // Enable verbose debug output
- $mail->isSMTP(); // Set mailer to use SMTP
- $mail->Host = 'in-v3.mailjet.com'; // Specify main and backup SMTP servers
- $mail->SMTPAuth = true; // Enable SMTP authentication
- $mail->Username = '428fed465f1bc58fc7a6dcfe042f01ff'; // SMTP username
- $mail->Password = '3eb7a25339430a472ae3c06efc7491d4'; // SMTP password
- $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
- $mail->Port = 587; // TCP port to connect to
- $mail->setFrom('teukurevand@gmail.com', 'PUMA COMP');
- $mail->addAddress('thilmanrevanda@gmail.com'); // Add a recipient
- $mail->addReplyTo('pumacomputing@gmail.com', 'PUMA COMP');
- $mail->isHTML(true); // Set email format to HTML
- $mail->Subject = "PUMA COMP";
- $mail->Body = "<p>test</p>";
- $mail->AltBody = "test";
- if(!$mail->send()) {
- echo 'Message could not be sent.';
- echo 'Mailer Error: ' . $mail->ErrorInfo;
- } else {
- echo 'Message has been sent';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement