Delivery Receipts

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
gmckay
Forum Newbie
Posts: 11
Joined: Mon Apr 28, 2008 5:13 pm
Location: Melbourne, Australia

Delivery Receipts

Post by gmckay »

My customer wants a delivery receipt (not a read receipt).

I am able to code for a read-receipt using;
$message->requestReadReceipt($email);
and I am able to code the return-path;
$message->setReturnPath($email);
but I can find no reference to delivery receipts...

Please advise...
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Delivery Receipts

Post by Chris Corbyn »

:?:
gmckay
Forum Newbie
Posts: 11
Joined: Mon Apr 28, 2008 5:13 pm
Location: Melbourne, Australia

Re: Delivery Receipts

Post by gmckay »

Does :?: mean that you need further information, or that you think I'm a nutter.

:?:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Delivery Receipts

Post by John Cartwright »

I would guess more information.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Delivery Receipts

Post by Chris Corbyn »

It means I don't know what a "delivery receipt" is if it's not a read-receipt. Far from having the receiver's mail client send an auto-response which I have no control over I've never heard of such a thing.

Did your client give you any more info?
gmckay
Forum Newbie
Posts: 11
Joined: Mon Apr 28, 2008 5:13 pm
Location: Melbourne, Australia

Re: Delivery Receipts

Post by gmckay »

Ummm....

I'll try to be more specific then.

When I send an email using Outlook I can request both a delivery receipt, and a read receipt. How do I do that with Swift Mailer? Read receipts are covered by the documentation and the forums, but delivery receipt examples are not to be found...
gmckay
Forum Newbie
Posts: 11
Joined: Mon Apr 28, 2008 5:13 pm
Location: Melbourne, Australia

Re: Delivery Receipts

Post by gmckay »

http://www.sendmail.org/~ca/email/dsn.html defines a delivery receipt as;

delivery
means that the e-mail has been delivered by an MTA to a recipient's mailbox;

The php mail() function allows this to be coded as "Return-Receipt-To: aa@aa.com" but the reply-to address ends up being modified by my server, to some default host server mailbox and I don't get the delivery receipt.

If you have Outlook, send a test email with delivery receipt option to yourself, and you can see the required headers if you interrogate the received mail.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Delivery Receipts

Post by Chris Corbyn »

Ah, DSN. Sorry, I understand now. Swift doesn't support this no. It's a planned addition to version 4's enterprise edition but it obviously doesn't work all the time. It will only work on servers offering DSN :)
gmckay
Forum Newbie
Posts: 11
Joined: Mon Apr 28, 2008 5:13 pm
Location: Melbourne, Australia

Re: Delivery Receipts

Post by gmckay »

Thanks,
I guess I'll have to give up the idea of using Swift-Mailer and revert to finding some php SMTP code to hack for my own purposes.
Post Reply