Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'phpmailer/PHPMailerAutoload.php';
- $mail = new PHPMailer;
- $mail->isSMTP();
- $mail->SMTPDebug = 2;
- $mail->Debugoutput = 'html';
- $mail->CharSet = "UTF-8";
- $mail->Host = 'smtp.gmail.com';
- $mail->Port = 465;
- $mail->SMTPSecure = 'ssl';
- $mail->SMTPAuth = true;
- $mail->Username = "";
- $mail->Password = "";
- $mail->setFrom('noreply.verona@gmail.com', 'Verona Consulting');
- $mail->addAddress('wojciech.mazur@veronaconsulting.pl', 'Wojciech Mazur');
- $mail->Subject = 'Raport Weryfikacja Janków - '.date("d.m.Y");
- $mail->msgHTML(file_get_contents('views/v_report_dkj_ver.php'), dirname(__FILE__));
- $mail->AltBody = 'TEST';
- if (!$mail->send()) {
- echo "Mailer Error: " . $mail->ErrorInfo;
- } else {
- echo "Message sent!";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement