Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- send_test();
- function send_test() {
- $today = date("F j, Y");
- $mail = new PHPMailer(); // the true param means it will throw exceptions on errors, which we need to catch
- $mail->CharSet = 'UTF-8';
- $mail->Host = "imap.gmail.com"; // SMTP server
- //$mail->IsSMTP();
- $mail->Username = "notifications@telusinternational.com"; // SMTP server
- $mail->Password = "Tr@nsact3l2013"; // SMTP server
- $mail->From = "notifications@telusinternational.com"; // SMTP server
- $mail->Port = 25;
- $mail->Body = "<html>
- <body>
- <div>
- <p>Test</p>
- </div>
- </body>
- </html>";
- $mail->addAddress("carlos.recinos@telusinternational.com");
- $mail->IsHTML(true);
- $mail->SetFrom('notifications@telusinternational.com', 'AD Global Scanner');
- $mail->Subject = "subject";
- echo $mail->Body;
- if (!$mail->Send()) {
- echo "Message was not sent";
- echo "Mailer Error: " . $mail->ErrorInfo;
- //exit;
- } else {
- echo "Message was sent";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement