Jump to content

[SOLVED] Email Headers - Return Receipts


karenn1

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: [email protected]' . "\r\n";

$headers .= 'Return-Path: [email protected]' . "\r\n";

$headers .= "Return-Receipt-To: [email protected]\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: [email protected]\n";
$headers .="Return-Path: [email protected]\n";
$headers .="Return-Receipt-To: [email protected]\n";
$headers .="Reply-To: [email protected]\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: [email protected] \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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.