requestReadReceipt

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
rastarr
Forum Newbie
Posts: 10
Joined: Sat Dec 02, 2006 6:35 pm

requestReadReceipt

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
rastarr
Forum Newbie
Posts: 10
Joined: Sat Dec 02, 2006 6:35 pm

Post 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 :)
Post Reply