Go Back   HostGator Peer Support Forums > General Discussion > Webhosting

Notices

Reply
 
Thread Tools
  #1  
Old 04-04-2006, 02:54 PM
chickens chickens is offline
Hatchling Croc
 
Join Date: Jan 2005
Posts: 21
Default Return Path = Nobody

I'm trying to send mail through our site when a user submits an order. The mail goes through okay, but the return path is set to nobody, so some servers will reject it and we won't get returned mail.

I've tried adding "Return Path: ouraddress@ourdomain.com" to the headers, as well as this function (as suggested in another thread):

$f="-f";
$returnpath = "webmaster@yourserver.com";

mail("somebody@gmail.com", $subject, $message, "$f$returnpath");
but it still says nobody. Obviously we don't have access to the php ini file. Can I change it in .htaccess? And if so, what would be the proper line of code?

Thanks,
chickens
Reply With Quote
  #2  
Old 04-04-2006, 04:15 PM
chickens chickens is offline
Hatchling Croc
 
Join Date: Jan 2005
Posts: 21
Default Re: Return Path = Nobody

Solved!

I had changed it so the $headers."-f ouremail@ourdomain.com" appended, but it does work when put in as suggested below ie (..., $message, "$f$returnemail")...

Huzzah for not reading the directions exactly, and hurrah for commas.
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 12:52 AM.