Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<form method='get'>";
- echo "<input type='text' name='fName'>";
- echo "<input type='text' name='body'>";
- echo "<input type='submit'>";
- echo "</form>";
- require_once('class.phpmailer.php');
- require_once('class.pop3.php');
- $mail = new PHPMailer();
- $mail ->From = "test@serwer1852922.home.pl";
- $mail ->FromName = $_GET['fName'];
- $mail ->AddReplyTo('test@serwer1852922.home.pl','mailing');
- $mail ->Host = "serwer1852922.home.pl";
- $mail ->Mailer = "pop3";
- $mail ->SMTPAuth = true;
- $mail ->Username = "test@serwer1852922.home.pl";
- $mail ->Password = "uczenzschie";
- $mail ->Port = "995";
- $mail ->Subject = "temat";
- $mail ->Body = $_GET['body'];
- $mail ->AddAddress("Piotr66640@gmail.com","FIRMA");
- $mail ->Send();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement