icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHP Help!!!!!! Fast please

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old November 4th, 2004, 11:30 AM   #1 (permalink)
Surpass Fan
Comfy Contributor
 
MadMadDeals's Avatar
 
Joined in Jun 2004
Lives in NOD!
137 posts
Gave thanks: 0
Thanked 0 times
Question PHP Help!!!!!! Fast please

I am trying a simple mail php script to send an auto reply via a form everything works the mail gets sent once the form is filled out problem is the from path I have set up like this

PHP Code:
[left]mail ("myemail[at]myemaildomain.com""A letter was requested""$name just[/left]
used the form\n\n for $chname from $email."
) ; 

But when the email comes in the from adress is exactly this nobody[at]muy.surpasshosting.com Why is this? What can I do to get it to show the from feild the way I requested?
__________________
Server:MUY
Tech Deals & much more...
Server:MAC
The Boxer Dog

Last edited by MadMadDeals; November 4th, 2004 at 11:37 AM..
MadMadDeals is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4th, 2004, 1:27 PM   #2 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
That would be a 'header' value.
PHP Code:
$headers .= "From: ".$from ."\r\n";

mail($to$subject$message$headers); 
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On