phpknight Posted May 10, 2008 Share Posted May 10, 2008 On my dedicated box, all email gets bounced to the default address on the account. However, I want to send email with PHP so that if it bounces to my address instead: like [email protected]. I don't want to make this the default address though, because I would still like the all the SPAM to disappear into the black hole. What do I put in the header to get this done? I tried reply-to, but that does not work. I found something like this: -fbounce_address@your_domain.com but I must not be doing it correctly because it is not working. Any help is appreciated. Link to comment https://forums.phpfreaks.com/topic/104993-how-to-bounce-an-email/ Share on other sites More sharing options...
AndyB Posted May 10, 2008 Share Posted May 10, 2008 check php mail() in the manual and look for return-path and how to set it Link to comment https://forums.phpfreaks.com/topic/104993-how-to-bounce-an-email/#findComment-537464 Share on other sites More sharing options...
phpknight Posted May 10, 2008 Author Share Posted May 10, 2008 Hi, I've looked in the manual and do not see that under the mail function. Can you send me to a more specific page where I might see a list of header stuff and maybe even an example? Link to comment https://forums.phpfreaks.com/topic/104993-how-to-bounce-an-email/#findComment-537621 Share on other sites More sharing options...
BlueSkyIS Posted May 10, 2008 Share Posted May 10, 2008 googled php email headers return-path: http://www.htmlite.com/php029.php Link to comment https://forums.phpfreaks.com/topic/104993-how-to-bounce-an-email/#findComment-537649 Share on other sites More sharing options...
phpknight Posted May 10, 2008 Author Share Posted May 10, 2008 No luck there. Even when I modify them, they come through overwritten as something else. Link to comment https://forums.phpfreaks.com/topic/104993-how-to-bounce-an-email/#findComment-537689 Share on other sites More sharing options...
AndyB Posted May 10, 2008 Share Posted May 10, 2008 I've looked in the manual and do not see that under the mail function http://ca.php.net/manual/en/ref.mail.php - search the page for return-path. There are a half-dozen or more references to it, including Windows and *nix server instructions on 'how to' in the user notes. Link to comment https://forums.phpfreaks.com/topic/104993-how-to-bounce-an-email/#findComment-537702 Share on other sites More sharing options...
phpknight Posted May 10, 2008 Author Share Posted May 10, 2008 Okay, it looks like that information should be good enough. Thanks! Link to comment https://forums.phpfreaks.com/topic/104993-how-to-bounce-an-email/#findComment-537727 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.