Page 1 of 1

requestReadReceipt

Posted: Sun Dec 17, 2006 5:16 am
by rastarr
Hi,

Would someone be able to give me a snippet of code as to how the requestReadReceipt request should be made in PHP4 please?
I'm still fumbling around with php and don't quite understand requestReadReceipt from the doco.

Thanks for any help
Martin

Posted: Sun Dec 17, 2006 5:48 am
by Chris Corbyn

Code: Select all

$swift = new Swift( ... );
$swift->requestReadReceipt(true);

$swift->send( ... );
All it does is sets a header or two which ask the receiving mail client to send a read receipt to the Reply-To: address or From: address. Don't rely upon it though, most mail clients will ask the recipient what they want to do, and many of them actually have an option to automatically ignore read receipt requests.

Posted: Sun Dec 17, 2006 5:55 am
by rastarr
Ahh cool - I understand it's usage now.
Thanks very much.

And, yes, I understand the unreliability of the function - I myself have it disabled :)