woefie Owner
Posts : 52 Points : 97 Reputation : 0 Join date : 2012-04-24
| Subject: PHP code to send emails with any mail address! Wed Apr 25, 2012 4:37 am | |
| U can use this to send emails from any mail name u want! still u will have to setup a mail server on ur PC but here u go hope it helps! - Code:
-
<html> <body>
<?php if (isset($_REQUEST['from']) && isset($_REQUEST['to'])) //if "from" and "to" are filled out, send email { //send email $from = $_REQUEST['from'] ; $to = $_REQUEST['to'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail($to, $subject, $message, "From:" . $from); echo "Thank you for using our mail name spoofer. Your message has been sent to " . $to . "!"; } else //if "from" and "to" are not filled out, display the form { echo "<form method='post' action='sendmail.php'> From: <input name='from' type='text' /><br /> To: <input name='to' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?>
</body> </html>
| |
|
Rzdude Beginner
Posts : 78 Points : 110 Reputation : 0 Join date : 2014-06-27
| Subject: Re: PHP code to send emails with any mail address! Fri Jun 27, 2014 5:38 am | |
| | |
|