Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/52833-solved-email-headers-return-receipts/
Share on other sites

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

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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.