hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : PHP Sending Email problem Please Help

Forum Jump

PHP Sending Email problem Please Help

Reply Post New Thread In Programming Discussion Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
New Member
Join Date: Aug 2002
Posts: 2

PHP Sending Email problem Please Help


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:


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

Sponsored Links
Join Date: Jun 2002
Posts: 58
Maybe you should test it out and see if values like $address actually have an email in them.

Join Date: Sep 2001
Location: Pune, Maharashtra, India.
Posts: 24
Print is just before the mail function.

Sponsored Links

Related posts from
Title Type Date Posted
GlowHost Listing 2015-01-30 21:01:31
DIY Website Builder Launches Integrated Email Newsletter Tool Web Hosting News 2014-07-10 11:51:24
Email Platform Inbox Launches to Help Developers Create Next-Gen Email Apps Web Hosting News 2014-07-08 10:43:58
Australian Web Host Crazy Domains Irretrievably Loses Customer Data, Offering $100 Credit to Affected Accounts Web Hosting News 2014-05-20 10:56:27
Outbound Spam Causing Sleepless Nights? Blog 2013-05-13 09:52:21

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?