We build custom web applications
to grow your business.

Setting php Mail Bounce Email Return Path on Godaddy Shared Hosting

bounce-mailA spent quit a while going thought php.net, stackoverflow.com and godaddy.com looking for a solution on how to set return path for mail on Godaddy shared hosting accounts. I saw that a few responses to inquiries on the Godaddy forum did not provide a solution, so I am providing the solution, hoping that It will help some web developer out there. When sending mail through Godaddy, there is a default return path that is already set on the server that sends bounce mail to an email address on secureserver.net The solution is to change that default in the php.ini file by placing this: sendmail_path = /usr/sbin/sendmail -t -i -fbounce@yourdomain.com Further solutions can be found here The great thing about this is that you can now set any email for return path, even emails that are not associated with the domain or host. Because Godaddy does not allow access to the imap_open function on shared hosting servers, you are now able to retrieve and analyze bounce mail sent to email address on a host that will allow it