Page 1 of 1
mail function and bounced messages
Posted: Tue Mar 10, 2009 11:30 pm
by oboedrew
If a message is sent via php's mail function and it bounces, will the bounce notification be sent to the address in the "from" header? Or is there something else I must do to ensure bounces end up in my inbox?
Thanks,
Drew
Re: mail function and bounced messages
Posted: Wed Mar 11, 2009 1:16 am
by requinix
oboedrew wrote:If a message is sent via php's mail function and it bounces, will the bounce notification be sent to the address in the "from" header? Or is there something else I must do to ensure bounces end up in my inbox?
It will go back to the From address... unless you give a Reply To, then it might go to that instead. Not sure about that.
Re: mail function and bounced messages
Posted: Tue Mar 17, 2009 11:34 am
by oboedrew
I'm not sure this is correct. I've been testing it the past few days, sending test messages via php's mail function to addresses that do not exist, and I'm not getting any of them bounced back to the "From:" address. Anyone have other ideas for ensuring these bounced messages make their way back to me? Or are there any circumstances that will cause bounced message not to end up at the "From:" address?
Thanks,
Drew
Re: mail function and bounced messages
Posted: Tue Mar 17, 2009 3:19 pm
by oboedrew
Nevermind. Found a solution. It seems a fifth parameter "-f$my_email" is needed. Then I receive the bounce notices.
Cheers,
Drew