karenn1 Posted May 24, 2007 Share Posted May 24, 2007 I currently having a mailing system set up that send out email using the following headers: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: info@mysite.com' . "\r\n"; $headers .= 'Return-Path: bounce@mysite.com' . "\r\n"; $headers .= "Return-Receipt-To: karen@mysite.co.za\n"; The email addresses have been changed for privacy purposes. My problem is that the Return Receipt just never arrives. The coding looks fine but it just doesn't come through. What's wrong with this picture? Can anyone please help?? Thanks! Karen Quote Link to comment https://forums.phpfreaks.com/topic/52833-solved-email-headers-return-receipts/ Share on other sites More sharing options...
marmite Posted May 24, 2007 Share Posted May 24, 2007 This isn't my area of expertise, but I had a similar problem and discovered that it WAS sending the email, but my SPAM filters on my inbox were weeding out the emails. Worth a check. Quote Link to comment https://forums.phpfreaks.com/topic/52833-solved-email-headers-return-receipts/#findComment-260885 Share on other sites More sharing options...
karenn1 Posted May 24, 2007 Author Share Posted May 24, 2007 I've checked that and sent a test to a friend as well. He didn't receive anything either. I normally receive receipts, though, when other people open my email so that's not really the problem. Can anybody else please help? Thanks! Karen Quote Link to comment https://forums.phpfreaks.com/topic/52833-solved-email-headers-return-receipts/#findComment-261151 Share on other sites More sharing options...
MadTechie Posted May 24, 2007 Share Posted May 24, 2007 try <?php $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "X-Priority: 3\n"; $headers .= "X-MSMail-Priority: Normal\n"; $headers .= "X-Mailer: php\n"; $headers .="From: info@mysite.com\n"; $headers .="Return-Path: karen@mysite.co.za\n"; $headers .="Return-Receipt-To: karen@mysite.co.za\n"; $headers .="Reply-To: karen@mysite.co.za\n"; ?> but i think the host provider can disable these.. also not all mail clients will send a Receipt, to check use outlook Quote Link to comment https://forums.phpfreaks.com/topic/52833-solved-email-headers-return-receipts/#findComment-261160 Share on other sites More sharing options...
karenn1 Posted May 25, 2007 Author Share Posted May 25, 2007 I actually found this code on Google: $headers .="Disposition-Notification-To: karen@mysite.co.za \n"; It works perfect. The email client pops up a window asking if you want to allow sending of the receipt. Thanks for the help anyway! Karen Quote Link to comment https://forums.phpfreaks.com/topic/52833-solved-email-headers-return-receipts/#findComment-261390 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.