Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mail() - emails work but SMS doesn't
- #!/usr/bin/php
- <?
- require_once("PHPMailer/class.phpmailer.php");
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->Host = "smtp.fas.harvard.edu";
- $mail->SetFrom("example@gmail.com");
- $mail->AddAddress("##########@vtext.com");
- $mail->AddAddress("example@gmail.com");
- $mail->Subject = "hello, world";
- $mail->Body = "testing 1 2 3";
- if ($mail->Send() === false)
- die($mail->ErrorInfo . "n");
- ?>
- $mail->AddCC("woot@gmail.com");
- $mail->ContentType = 'text/plain';
- $mail->IsHTML(false);
Add Comment
Please, Sign In to add comment