Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDO/ASP Private message does not work


Message #1 by "Adrian" <adrianto.handisurya@s...> on Mon, 20 Aug 2001 07:23:29
Hello World,



Does anyone try to send email with message's sensitivity is set to private 

in CDO/ASP ?

Marking a message as private prevents that message from being modified. 

We have tried to do it using CDO/ASP and got the following results:

Successfully send email with the yellow banner at the top of the message 

indicating it's sensitivity ( private ). 

The email's edit message button is also greyed out.

However the email DOES NOT HAVE THE FUNCTIONALITY of private message ie 

the recipient can modify the email upon reply / forward.

We are running on NT 4, IIS 4.0, Exchange 5.5 and cdo version 1.21. The 

following is the sendmail codes we are using (modified from Ed Beck's 

classic "Getting Started with ASP Messaging"):



        Set objOutbox = objAMSession.Outbox

        Set objMessage = objOutbox.Messages.Add

        Set objRecipients = objMessage.Recipients

        Set objRecipient1 = objRecipients.Add

        objRecipient1.Name =  strRecipient



        objMessage.Subject = strSubject

        objMessage.Text =  strMessage

        objMessage.Sensitivity = 2   'This sets the mail to private - 

cdoprivate

        objMessage.Send



Any help is very much appreciated.



Thanks

Adrian
Message #2 by "Adrian" <adrianto.handisurya@s...> on Mon, 20 Aug 2001 10:40:11
Hi World,



Managed to find out the problem: Marking a message as private which 

prevents the message from being modifid on Reply / forward would only work 

if the message is RTF. CDO / ASP can only sending Plain text email since 

Message.Text can only take ASCII. Q172038 - DLL to Read and Write RTF with 

Messaging article provides the solution.

However I am a newbie to ASP / VB / IIS /Exchange etc. My question is: 

1. Can ASP directly calls the function provided in the DLL ?

2. What's the steps required from NT / IIS sides

3. Any sample codes / article to do such things ?



Many Thanks

Adrian



> Hello World,

> 

> Does anyone try to send email with message's sensitivity is set to 

private 

> in CDO/ASP ?

> Marking a message as private prevents that message from being modified. 

> We have tried to do it using CDO/ASP and got the following results:

> Successfully send email with the yellow banner at the top of the message 

> indicating it's sensitivity ( private ). 

> The email's edit message button is also greyed out.

> However the email DOES NOT HAVE THE FUNCTIONALITY of private message ie 

> the recipient can modify the email upon reply / forward.

> We are running on NT 4, IIS 4.0, Exchange 5.5 and cdo version 1.21. The 

> following is the sendmail codes we are using (modified from Ed Beck's 

> classic "Getting Started with ASP Messaging"):

> 

>         Set objOutbox = objAMSession.Outbox

>         Set objMessage = objOutbox.Messages.Add

>         Set objRecipients = objMessage.Recipients

>         Set objRecipient1 = objRecipients.Add

>         objRecipient1.Name =  strRecipient

> 

>         objMessage.Subject = strSubject

>         objMessage.Text =  strMessage

>         objMessage.Sensitivity = 2   'This sets the mail to private - 

> cdoprivate

>         objMessage.Send

> 

> Any help is very much appreciated.

> 

> Thanks

> Adrian

  Return to Index