Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Mighty (Programmer) (OP)
16 Nov 04 8:38
Hi Folks,

I use CDOSYS to send emails from our Intranet site. I need to be able to set the emails up so that I can receive read receipts. The format of my CDO code is usually very simple:

set test = CreateObject("CDO.Message")
test.To = "me@mycompany.com"
test.From = "website@mycompany.com (Website)"
test.Subject = "Test"
test.TextBody = "This is just a test"
test.Send
set test = nothing

I don't set any of the configuration options. Can anyone tell me how I can set up the emails to request read receipts.

Thanks

Mighty

Chopstik (TechnicalUser)
16 Nov 04 11:17
Perhaps this might help: CDO Help from MS

------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous

Mighty (Programmer) (OP)
16 Nov 04 11:32
Thanks Chopstik. I found that but it only gives me a delivery receipt - not a read receipt.

Mighty

Chopstik (TechnicalUser)
16 Nov 04 12:21
Actually, I thought that the following section in red would have shown how to do both the delivery and read receipt.  Is this not the case?  

CODE

With iMsg
    Set .Configuration = iConf
    .To = "<valid e-mail address>"  'ToDo: Type a valid e-mail address.
    .From = "<valid e-mail address>" 'ToDo: Type a valid e-mail address.
    .Subject = "This is a test CDOSYS message (Setting DSN options)"
    .HTMLBody = strHTML
    .fields("urn:schemas:mailheader:disposition-notification-to") = "<valid e-mail address>" 'ToDo: Type a valid e-mail address.
    .fields("urn:schemas:mailheader:return-receipt-to") = "<valid e-mail address>"  'ToDo: Type a valid e-mail address.

    'Set DSN options.
'    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.

    .DSNOptions = cdoDSNSuccessFailOrDelay
    .DSNOptions = 14
    .fields.update
    .Send
End With

------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous

Mighty (Programmer) (OP)
17 Nov 04 3:15
Hi Chopstik,

Thanks for the reply again. To test it out, I used the following code:

set test = CreateObject("CDO.Message")
test.To = "user@mycompany.com"
test.From = "me@mycompany.com"
test.Subject = "Test"
test.TextBody = "This is just a test - testing out the read/delivery receipts!!"
test.fields("urn:schemas:mailheader:disposition-notification-to") = "me@mycompany.com"
test.fields("urn:schemas:mailheader:return-receipt-to") = "me@mycompany.com"
test.DSNOptions = 14
test.fields.update
test.Send
set test = nothing

As I mentioned in the last post, this gives me a delivery receipt but not a read receipt. Am I missing something??

Mighty

newmediaguy (Programmer)
17 Nov 04 4:45
I dont think that the component will give you a read reciept. They only way that I know to do it is to call a page from within the content of the email that generates an email back to you everytime the email is read.

However microsoft now pretty much made that option redundant with SP2 which now makes the user confirm that they want the images etc so the method above is no longer accurate.

Hope this helps...

Thanks

Glen
Conception | Execution

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close