| View previous topic :: View next topic |
| Author |
Message |
wilson Guest
|
Posted: Tue Sep 26, 2006 8:11 am Post subject: How to request delivery notification using TIdSMTP ? |
|
|
How to request delivery notification using TIdSMTP ?
This can be done with SMTP command, e.g.
RCPT TO: abc (AT) example (DOT) com NOTIFY=SUCCESS,FAILURE
but I don't know how to do this with TIdSMTP.
Thank you. |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Sep 26, 2006 2:45 pm Post subject: Re: How to request delivery notification using TIdSMTP ? |
|
|
"wilson" <e (AT) mail (DOT) com> wrote in message
news:4518c9d8$1 (AT) newsgroups (DOT) borland.com...
| Quote: | How to request delivery notification using TIdSMTP ?
|
You don't.
| Quote: | This can be done with SMTP command, e.g.
RCPT TO: abc (AT) example (DOT) com NOTIFY=SUCCESS,FAILURE
|
Only on servers that implement RFC 1891 ("SMTP Service Extension for
Delivery Status Notifications"), which is indicated by the keyword "DSN"
being present in the reply to the EHLO command. Indy does not implement DSN
support at this time.
| Quote: | I don't know how to do this with TIdSMTP.
|
In order to use DSN, you would have to either 1) alter TIdSMTP's source
code, or 2) implement the SMTP protocol from scratch yourself.
Gambit |
|
| Back to top |
|
 |
Bill Edwards Guest
|
Posted: Tue Sep 26, 2006 7:48 pm Post subject: Re: How to request delivery notification using TIdSMTP ? |
|
|
Perhaps the "ReceiptRecipient" property of TIdMessage will serve the
purpose?
"wilson" <e (AT) mail (DOT) com> wrote in message
news:4518c9d8$1 (AT) newsgroups (DOT) borland.com...
| Quote: | How to request delivery notification using TIdSMTP ?
This can be done with SMTP command, e.g.
RCPT TO: abc (AT) example (DOT) com NOTIFY=SUCCESS,FAILURE
but I don't know how to do this with TIdSMTP.
Thank you. |
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Sep 26, 2006 10:13 pm Post subject: Re: How to request delivery notification using TIdSMTP ? |
|
|
"Bill Edwards" <sdbgrump (AT) hotmail (DOT) com> wrote in message
news:45193da3$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Perhaps the "ReceiptRecipient" property of TIdMessage
will serve the purpose?
|
That property fills in the "Disposition-Notification-To" header of the
message itself. It is not an SMTP-specific value. Not all servers
recognize those types of headers. And besides that, those that do tend to
use that particular header for read receipts, not delivery receipts.
Gambit |
|
| Back to top |
|
 |
Massuda Guest
|
Posted: Wed Sep 27, 2006 2:25 am Post subject: Re: How to request delivery notification using TIdSMTP ? |
|
|
| Quote: | That property fills in the "Disposition-Notification-To" header of the
message itself.
|
Can I use the header "Return-Receipt-To" for this purpose (delivery
notification)?
--- posted by geoForum on http://delphi.newswhat.com |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Sep 27, 2006 2:41 am Post subject: Re: How to request delivery notification using TIdSMTP ? |
|
|
"Massuda" <massuda (AT) mailinator (DOT) com> wrote in message
news:45198ef5$3 (AT) newsgroups (DOT) borland.com...
| Quote: | Can I use the header "Return-Receipt-To" for this purpose
(delivery notification)?
|
That is entirely dependant on the particular server that is receiving the
message. "Return-Receipt-To" is not a standard header, and it is not
specifically a delivery notification header either. Many servers do not use
it as a delivery notification. If they use it at all, it is used as a read
notification instead. Some servers do not use it at all.
Gambit |
|
| Back to top |
|
 |
wilson Guest
|
Posted: Wed Sep 27, 2006 8:11 am Post subject: Re: How to request delivery notification using TIdSMTP ? |
|
|
Thank you very much for the information.
Remy Lebeau (TeamB) wrote:
| Quote: |
"wilson" <e (AT) mail (DOT) com> wrote in message
news:4518c9d8$1 (AT) newsgroups (DOT) borland.com...
How to request delivery notification using TIdSMTP ?
You don't.
This can be done with SMTP command, e.g.
RCPT TO: abc (AT) example (DOT) com NOTIFY=SUCCESS,FAILURE
Only on servers that implement RFC 1891 ("SMTP Service Extension for
Delivery Status Notifications"), which is indicated by the keyword
"DSN" being present in the reply to the EHLO command. Indy does not
implement DSN support at this time.
I don't know how to do this with TIdSMTP.
In order to use DSN, you would have to either 1) alter TIdSMTP's
source code, or 2) implement the SMTP protocol from scratch yourself.
Gambit
|
-- |
|
| Back to top |
|
 |
wilson Guest
|
Posted: Wed Sep 27, 2006 8:11 am Post subject: Re: How to request delivery notification using TIdSMTP ? |
|
|
Yes. It is not reliable to request delivery notification by message
header as this is not a standard approach and client/recipient
dependent. With number of trials, using SMTP "RCPT TO:" command is more
reasonable.
Remy Lebeau (TeamB) wrote:
| Quote: |
"Massuda" <massuda (AT) mailinator (DOT) com> wrote in message
news:45198ef5$3 (AT) newsgroups (DOT) borland.com...
Can I use the header "Return-Receipt-To" for this purpose
(delivery notification)?
That is entirely dependant on the particular server that is receiving
the message. "Return-Receipt-To" is not a standard header, and it is
not specifically a delivery notification header either. Many servers
do not use it as a delivery notification. If they use it at all, it
is used as a read notification instead. Some servers do not use it
at all.
Gambit
|
-- |
|
| Back to top |
|
 |
|