GPlev Posted December 26, 2023 Share Posted December 26, 2023 I have a mail function to send out emails to a list of email addresses from a mysql table. However...when an email address is no longer valid, i dont get bounce back emails. Below is the header text I am using..anything wrong with this. $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $header .= 'Return-Path: myemail@mail.com' . "\r\n"; $header .= 'From: myemail@mail.com' . "\r\n"; Quote Link to comment https://forums.phpfreaks.com/topic/317572-no-bounce-back-email/ Share on other sites More sharing options...
requinix Posted December 26, 2023 Share Posted December 26, 2023 Send one of those emails to yourself and check the full source (or whatever your client calls it) of the message to see what the Return-Path is. Was it possibly overwritten by some other value? Quote Link to comment https://forums.phpfreaks.com/topic/317572-no-bounce-back-email/#findComment-1613792 Share on other sites More sharing options...
GPlev Posted December 27, 2023 Author Share Posted December 27, 2023 This is what is in the email properties. Where would this be overwritten? or does it default to this because there is not something right with my code? Return-path: <bounce-cgi-ipw.gomblcom@eigbox.net> Quote Link to comment https://forums.phpfreaks.com/topic/317572-no-bounce-back-email/#findComment-1613794 Share on other sites More sharing options...
kicken Posted December 27, 2023 Share Posted December 27, 2023 Your host is probably overriding it, possibly as a way to try and detect and shutdown spam accounts. You could contact your host and see if they have a solution. Quote Link to comment https://forums.phpfreaks.com/topic/317572-no-bounce-back-email/#findComment-1613796 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.