note 33745 added to function.mail

From: Date: Sun, 06 Jul 2003 10:16:06 +0000
Subject: note 33745 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-51581@lists.php.net to get a copy of this message
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> ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33745 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33745&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33745&report=yes

« previous php.notes (#51581) next »