Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disposition-Notification-To & CDO

Status
Not open for further replies.

jmjmjm

Programmer
Jul 19, 2004
17
0
0
ES
Has anyone managed to send emails with CDO and

"Disposition-Notification-To" ?



Jose M. Guerrero
 
Thanks for the link Mike.

Something seems to be wrong.

If I use:

loMsg = CREATEOBJECT ("CDO.Message")
WITH loMsg
.Configuration = loConfig
.TO = tcA
.From = tcDe
.Subject = tcTema
.TextBody = tcDetalle
.SEND
ENDWITH

it works. When I add

loMsg = CREATEOBJECT ("CDO.Message")
WITH loMsg
.Configuration = loConfig
.TO = tcA
.From = tcDe
.Subject = tcTema
.TextBody = tcDetalle

.Fields.Item("disposition-notification-to") = tcDe
.Fields.Item("return-receipt-to") = tcDe
.Fields.update
.DSNOptions = cdoDSNSuccessFailOrDelay

.SEND
ENDWITH

it stops working. I don´t get any error message but th email is not sent.

Any idea about what can ve wrong?

TIA

Jose M. Guerrero
 
Did you assign a value to cdoDSNSuccessFailOrDelay? Your code should start with
Code:
# DEFINE cdoDSNSuccessFailOrDelay 14

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Yes, I have defined cdoDSNSuccessFailOrDelay first but something strage happens.

When I use .DSNOptions = the message is not sent but I don´t get any error message. The message simply vanishes.

Without the .DSNOptions = the message is sent but without
any disposition-notification-to in the header.

Another problem is to decide between the following options

1 --> .Fields("disposition-notification-to").Value =

2 --> .Fields.Item("disposition-notification-to").Value =

3 --> .Fields("disposition-notification-to") =

4 --> .Fields.Item("disposition-notification-to") =

5 --> .Fields("urn:schemas:mailheader:disposition-notification-to") =



Jose M. Guerrero
 
Are you mixing up perhpas the DSN (Delivery Status Notification) with the disposition notification?
In order to use the DSN you need to set the sendusing port to 2 (instead of 1). But your code seems incomplete, what is the content of loConfig?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Yes, I am using sendusing = 2 and have defined loConfig well.

In my latest text I have managed to make it work but only
without using .DSNOptions

It is quite strange. The destination receives the message and
can say yes or not to return the read receipt. And this is
received by the sender. But only whitout using DSNOptions.



Jose M. Guerrero
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top