Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2. require_once('libs/PHPMailer/PHPMailerAutoload.php');
  3. require 'libs/PHPMailer/class.phpmailer.php';
  4.  
  5. $some_page_contents = file_get_contents('welcome.php');
  6.  
  7. $mail = new PHPMailer();
  8. $mail->IsMail();
  9. $mail->Host = "smtp.example.com";
  10. $mail->Username = "first@example.com";
  11. $mail->Password = "example";
  12. $mail->SetFrom("first@example.com","first User");
  13. $mail->AddAddress("second@example.com");
  14. $mail->isHtml(true);
  15. $mail->Subject = "Second PHPMailer Message";
  16. $mail->Body = $some_page_contents;
  17. $mail->WordWrap = 50;
  18. $mail->Send();
  19. ?>
  20.  
  21. <?php
  22. echo 'hello';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement