Guest User

Untitled

a guest
Aug 10th, 2018
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. mail() - emails work but SMS doesn't
  2. #!/usr/bin/php
  3. <?
  4. require_once("PHPMailer/class.phpmailer.php");
  5.  
  6. $mail = new PHPMailer();
  7.  
  8. $mail->IsSMTP();
  9. $mail->Host = "smtp.fas.harvard.edu";
  10.  
  11. $mail->SetFrom("example@gmail.com");
  12. $mail->AddAddress("##########@vtext.com");
  13. $mail->AddAddress("example@gmail.com");
  14.  
  15. $mail->Subject = "hello, world";
  16. $mail->Body = "testing 1 2 3";
  17.  
  18. if ($mail->Send() === false)
  19. die($mail->ErrorInfo . "n");
  20.  
  21. ?>
  22.  
  23. $mail->AddCC("woot@gmail.com");
  24.  
  25. $mail->ContentType = 'text/plain';
  26. $mail->IsHTML(false);
Add Comment
Please, Sign In to add comment