Page 1 of 1

sendmail.php testing

Posted: Thu Jul 21, 2011 5:30 pm
by memine
Here is my sendmail code..

I am writing this on notebook and trying to test it- that is - fill out form and verify email sent.
I do not get any emails...?

thanks in advance...

Code: Select all

<?php

$msg = "name: $_POST["name"]";
$msg = "e-mail: $_POST["email"]";
$msg = "message: $_POST["message"]";



$recipient = "info@myname.net";
$subject = "Web Page Inquiry";
$headers = 
"From: $_POST[email]\n";
"Reply To: $_POST[email]\n";


mail($recipient,$subject,$msg,$headers);
?>

<?php
echo "<p>Thank You For Your Interest in name product</p>";
?>

Re: sendmail.php testing

Posted: Mon Jul 25, 2011 1:38 pm
by Benjamin
:arrow: Moved to PHP - Code