note 59964 added to ref.mail
| From: | nikka_scam at hotmail dot com | Date: | Wed, 21 Dec 2005 13:44:38 +0000 |
| Subject: | note 59964 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100514@lists.php.net to get a copy of this message | ||
Hello!... i'm starting using PHP, and I made a form in my site to send mails with PHP.
It's work perfect but the mails came empty to my outlook express. I mean, there's no text
in the email!!!. I don't know how to fix it!. Sorry about my english, I'm from
Argentina...
I hope one of you may help me.
This is the code I used in the page:
<body>
<form method="post" action="sending.php">
<p>Nombre:
<input name="nombre" type="text" />
</p>
<p>E-mail:
<input name="email" type="text" />
</p>
<p>Telefono:
<input name="telefono" type="text" />
</p>
<p>Mensaje:</p>
<p> <textarea name="message" rows="10" cols="30">
</textarea>
</p>
<p>
<input type="submit"/>
</p>
</form>
</body>
</html>
And this is the PHP code:
<?
$email = $_GET['email'];
$message = $_GET['message'];
mail("name@myemail.com", "Email Subject", $message, "From: $email",
Nombre: $nombre", Telefono: $telefono");
print("Su mensaje ha sido enviado.");
?>
PD: The mail I used, is an example. I changed with my real mail.
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59964
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59964&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59964&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59964&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59964&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59964&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59964&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59964&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59964&report=yes
Search -- http://master.php.net/manage/user-notes.php