hosted by liquidweb


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

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
  #1  
Old
New 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



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

  #3  
Old
Newbie
 
Join Date: Sep 2001
Location: Pune, Maharashtra, India.
Posts: 24
Yep!
Print is just before the mail function.

Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
DIY Website Builder Wix.com 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
Microsoft Exchange Online Outage of Over 8 Hours Frustrates Customers Web Hosting News 2014-06-25 11:23:55
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
Login:
Log in with your username and password
Username:
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.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?