Advertisement
Guest User

rudy

a guest
Oct 31st, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2.  
  3. echo "<form method='get'>";
  4. echo "<input type='text' name='fName'>";
  5. echo "<input type='text' name='body'>";
  6. echo "<input type='submit'>";
  7. echo "</form>";
  8.  
  9. require_once('class.phpmailer.php');
  10. require_once('class.pop3.php');
  11. $mail = new PHPMailer();
  12. $mail ->From = "test@serwer1852922.home.pl";
  13. $mail ->FromName = $_GET['fName'];
  14. $mail ->AddReplyTo('test@serwer1852922.home.pl','mailing');
  15. $mail ->Host = "serwer1852922.home.pl";
  16.  
  17. $mail ->Mailer = "pop3";
  18. $mail ->SMTPAuth = true;
  19. $mail ->Username = "test@serwer1852922.home.pl";
  20. $mail ->Password = "uczenzschie";
  21. $mail ->Port = "995";
  22. $mail ->Subject = "temat";
  23. $mail ->Body = $_GET['body'];
  24. $mail ->AddAddress("Piotr66640@gmail.com","FIRMA");
  25.  
  26. $mail ->Send();
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement