Results 1 to 3 of 3
-
08-31-2002, 02:27 PM #1New Member
- Join Date
- Aug 2002
- Posts
- 2
PHP Sending Email problem Please Help
Hello,
My provider is using CPanel
i upload that php script but shows email sent but never sent
Can you please let me know if i have error in my script:
<?php
if ($address=="") {
echo "<form action=\"mailtest.php\" method=get><p>Address to email: <input type=text name=address></p>";
echo "<p><input type=submit value=\"Send email\"></p>";
} else {
$subject = "Testing mail() function";
$message = "This is a test email";
mail($address,$subject,$message,"From: \"Mail Test\" <$address>");
echo "<p>Mail sent.";
}
?>
Thanks Alot
-
08-31-2002, 07:00 PM #2Disabled
- Join Date
- Jun 2002
- Posts
- 58
Maybe you should test it out and see if values like $address actually have an email in them.
-
09-01-2002, 05:21 AM #3Newbie
- Join Date
- Sep 2001
- Location
- Pune, Maharashtra, India.
- Posts
- 24
Yep!
Print is just before the mail function.