note 33745 rejected from function.mail by alindeman
| From: | alindeman@php.net | Date: | Sun, 06 Jul 2003 12:12:13 +0000 |
| Subject: | note 33745 rejected from function.mail by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51582@lists.php.net to get a copy of this message | ||
Note Submitter: coolguy_1983@hotmail.com
----
Please I really need help!...
I'm writing this code... and it doesn't wanna work with me...!!
Can anybody help me? Thank
<html>
<head>
<title>E-mail Form</title>
</head>
<body>
<form method="POST" action="hey.php">
<h1 align="center">E-mail Page</h1>
<p>First Name: <input type="text" name="sender_fname"
size="25" maxlength="25" /></p>
<p>Last Name: <input type="text" name="sender_lname"
size="25" maxlength="25" /></p>
<p>E-mail Address: <input type="text" name="sender_email"
size="30" /></p>
<p>Who would you like to e-mail today?<br />
<input type="checkbox" name="email[]"
value="coolguy_1983@hotmail.com" />Ned Adams<br />
<input type="checkbox" name="email[]" value="adams_ned@hotmail.com"
/>Ned Adams (Hotmail)<br />
<input type="checkbox" name="email[]" value="sl82t@cc.usu.edu"
/>Joyce Adams</p>
<p>Subject: <input type="text" name="subject" size="30"
/></p>
<p>Message: <textarea name="message" cols="30"
rows="5"></textarea></p>
<input type="hidden" name="action" value="send" />
<p><input type="submit" value="Send the Form" /></p>
</form>
<?php
mail ( "coolguy_1983@hotmail.com", "Use PHP Everyday", "Don't forget
to floss and use PHP everyday!", "From: hygienist@phphelp.tld\nX-Mailer: My PHP
Script\n");
echo "<html><head><title>Email
Sent!</title></head><body>";
echo "<h1 align=center>Thank you, $sender_fname</h1>";
echo "<p align=center>Your e-mail has been sent.</p>";
echo "<center>Return to <a href='email.html'>e-mail</a> more
people</center>";
echo "</body></html>";
php?>
</body>
</html>