Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. $mail = new PHPMailer();
  2. $mail->SMTPDebug = 2;
  3. $mail->SMTPAuth = true;
  4. $mail->SMTPSecure = "tls";
  5. $mail->Host = "secure##.inmotionhosting.com";
  6. $mail->Port = '587';
  7. $mail->Username = "username";
  8. $mail->Password = "password";
  9. $mail->CharSet = 'windows-1250';
  10. $mail->SetFrom ('noreply@domain.com', 'Ticket Submission');
  11. $mail->Subject = $email->subject;
  12. $mail->ContentType = 'text/plain';
  13. $mail->IsHTML(false);
  14. $mail->Body = $email->body;
  15. $mail->AddAddress ('stephen@domain.com', 'Stephen Adkins');
  16. $mail->AddAddress ('clay.smith@domain.com', 'Clay Smith');
  17. var_dump($mail->Send());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement