sendmail.php testing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
memine
Forum Newbie
Posts: 3
Joined: Thu Jul 21, 2011 8:36 am

sendmail.php testing

Post 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>";
?>
Last edited by Benjamin on Mon Jul 25, 2011 1:37 pm, edited 1 time in total.
Reason: Added [syntax=php|sql|css|javascript] and/or [text] tags.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: sendmail.php testing

Post by Benjamin »

:arrow: Moved to PHP - Code
Post Reply