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
mail function and bounced messages
Moderator: General Moderators
Re: mail function and bounced messages
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.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?
Re: mail function and bounced messages
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
Thanks,
Drew
Re: mail function and bounced messages
Nevermind. Found a solution. It seems a fifth parameter "-f$my_email" is needed. Then I receive the bounce notices.
Cheers,
Drew
Cheers,
Drew