note 59964 rejected from ref.mail by nlopess
| From: | nlopess@php.net | Date: | Wed, 21 Dec 2005 20:03:08 +0000 |
| Subject: | note 59964 rejected from ref.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100536@lists.php.net to get a copy of this message | ||
Note Submitter: nikka_scam at hotmail dot com
----
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.