RTI_CDOMail and delivery status notification (DSN) (OpenInsight 32-bit)
At 11 JUN 2012 07:08:15PM John Sullivan wrote:
I have been using the RTI_CDOMail function a several months now and have recently begun using the priority option and the read receipt notification request that came with 9.3.1. I also noticed the error messages returned are no longer numbers but now descriptive. I appreciate these improvements.
I was wondering if there is also a way to include setting the delivery status notification that is a part of the CDO mail.
CDO Mail Requesting delivery status notification
' Set delivery status notification (DSN)
' Name Value Description
' cdoDSNDefault 0 No DSN commands are issued.
' cdoDSNNever 1 No DSN commands are issued.
' cdoDSNFailure 2 Return a DSN if delivery fails.
' cdoDSNSuccess 4 Return a DSN if delivery succeeds.
' cdoDSNDelay 8 Return a DSN if delivery is delayed.
' cdoDSNSuccessFailOrDelay 14 Return a DSN if delivery succeeds, fails, or is delayed.
oMsg.DSNOptions = 14 ' cdoDSNSuccessFailOrDelay
At 11 JUN 2012 08:17PM bob carten wrote:
Hi John,
Add a "receipt" option to the otheroptions parameter
e.g
otheroptions = ""
otheroptions<1,-1> = 'receipt'
otheroptions<2,-1> = 14
call rti_CDOMail(mailservername, sendername, recipient, subject, body,cc, bcc, replyto, content, attachmentfilelist, Username, Password, useSSL, otherOptions)