attached Contact Item on server-side becomes attached Mail Item on client-side 
Author Message
 attached Contact Item on server-side becomes attached Mail Item on client-side

outlook 98

in code, i create a contact item, attach it to a mail item, send the mail
item.

  Set OutlookMailItem = OutlookApplication.CreateItem(olMailItem)
  Set OutlookContactItem = OutlookApplication.CreateItem(olContactItem)
  OutlookMailItem.Attachments.Add OutlookContactItem, olByValue
  OutlookMailItem.Send

before it is sent, if i make a copy of the mail item and move it to a
neutral folder and examine the mail item, it's attachment is clearly of type
contact item (double-clicking it shows a contact item in the default view)

however, once the mail item arrives on the client, its attachment is now
interpreted as a mail item (envelope icon) , with very poor results (double
clicking the attachment shows that the contact item's fields have been
mapped onto a mail item -- with only the Body property actually showing up
as the mail item's text)



Mon, 27 May 2002 03:00:00 GMT  
 attached Contact Item on server-side becomes attached Mail Item on client-side
very strange

i have tried doing the same thing manually , with the same results



Mon, 27 May 2002 03:00:00 GMT  
 attached Contact Item on server-side becomes attached Mail Item on client-side
Are you sending in RTF format, both in the message and in the recipient's
address? See http://www.slipstick.com/dev/sendform.htm.
--
Sue Mosher
Author of
  "Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours"
  "Microsoft Outlook 2000 E-mail and Fax Guide" (12/99)

Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> outlook 98

> in code, i create a contact item, attach it to a mail item, send the mail
> item.

>   Set OutlookMailItem = OutlookApplication.CreateItem(olMailItem)
>   Set OutlookContactItem = OutlookApplication.CreateItem(olContactItem)
>   OutlookMailItem.Attachments.Add OutlookContactItem, olByValue
>   OutlookMailItem.Send

> before it is sent, if i make a copy of the mail item and move it to a
> neutral folder and examine the mail item, it's attachment is clearly of
type
> contact item (double-clicking it shows a contact item in the default view)

> however, once the mail item arrives on the client, its attachment is now
> interpreted as a mail item (envelope icon) , with very poor results
(double
> clicking the attachment shows that the contact item's fields have been
> mapped onto a mail item -- with only the Body property actually showing up
> as the mail item's text)



Tue, 28 May 2002 03:00:00 GMT  
 attached Contact Item on server-side becomes attached Mail Item on client-side
Sue, Thanks for the response and the link to your website.

http://www.slipstick.com/dev/sendform.htm.

On this web page are instructions for manually ensuring that recipients of
various Outlook Items meant to be sent as special forms actually receive the
items as special forms, instead of normal messages.

All of these instructions must be implemented manually, e.g.

"Check the box for Always send to this recipient in Microsoft Outlook
rich-text format, and then click OK. "

I am doing everything in code : creating a Contact Item , then attaching the
Contact Item to a Mail Item , creating a Recipient Item, addressing the
Recipient Item , attaching the Recipient Item to the Mail Item's Recipients
Collection, and then Sending the Mail Item.

Do you know how to ensure that my Mail Items are sent as special forms so
that the Contact Item attachments show up as Contact Items on the
client-side (when the attachment icon is double-clicked).

I have looked over the properties of the following Outlook Objects and not
been able to discover how to accomplish this.

ContactItem
MailItem
MailItem.Recipient
MailItem.Recipient.AddressEntry



Tue, 28 May 2002 03:00:00 GMT  
 attached Contact Item on server-side becomes attached Mail Item on client-side
The Send as RTF property is not exposed in the Outlook object model and is
read-only in the CDO model. Unless the recipient record is already set as
RTF, the message won't be sent in RTF.

One exception: If you work in CDO, not Outlook, and are sending to the


might try something like this:

1. Create your contact and message with the contact attached.
2. Save it.
3. Get the message and store ID and use them to open the just saved message
using CDO.
4. Set the recipients using the above format.
5. Send with CDO.
--
Sue Mosher
Author of
  "Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours"
  "Microsoft Outlook 2000 E-mail and Fax Guide" (12/99)

Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> Sue, Thanks for the response and the link to your website.

> http://www.slipstick.com/dev/sendform.htm.

> On this web page are instructions for manually ensuring that recipients of
> various Outlook Items meant to be sent as special forms actually receive
the
> items as special forms, instead of normal messages.

> All of these instructions must be implemented manually, e.g.

> "Check the box for Always send to this recipient in Microsoft Outlook
> rich-text format, and then click OK. "

> I am doing everything in code : creating a Contact Item , then attaching
the
> Contact Item to a Mail Item , creating a Recipient Item, addressing the
> Recipient Item , attaching the Recipient Item to the Mail Item's
Recipients
> Collection, and then Sending the Mail Item.

> Do you know how to ensure that my Mail Items are sent as special forms so
> that the Contact Item attachments show up as Contact Items on the
> client-side (when the attachment icon is double-clicked).

> I have looked over the properties of the following Outlook Objects and not
> been able to discover how to accomplish this.

> ContactItem
> MailItem
> MailItem.Recipient
> MailItem.Recipient.AddressEntry



Thu, 30 May 2002 03:00:00 GMT  
 attached Contact Item on server-side becomes attached Mail Item on client-side
<<
The Send as RTF property is not exposed in the Outlook object model and is
read-only in the CDO model. Unless the recipient record is already set as
RTF, the message won't be sent in RTF.

Sue, Do you know why it was designed this way ?  Is this to prevent various
"client side" Outlook Automation programmers from tampering with possibly
enterprise-wide server-side address book settings ?

can the "always RTF" option be set using Exchange Server Scripting ?



Sun, 09 Jun 2002 03:00:00 GMT  
 attached Contact Item on server-side becomes attached Mail Item on client-side
No. I don't know. And no.
--
Sue Mosher
Author of
  "Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours"
  "Microsoft Outlook 2000 E-mail and Fax Guide" (12/99)

Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> <<
> The Send as RTF property is not exposed in the Outlook object model and is
> read-only in the CDO model. Unless the recipient record is already set as
> RTF, the message won't be sent in RTF.

> Sue, Do you know why it was designed this way ?  Is this to prevent
various
> "client side" Outlook Automation programmers from tampering with possibly
> enterprise-wide server-side address book settings ?

> can the "always RTF" option be set using Exchange Server Scripting ?



Thu, 13 Jun 2002 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. attached contact item is received as mail item

2. Sending mail from WebPage Client Side with attached file

3. Attach Reference to Contact Item to Mail Message

4. Contact Item doesn't attach: no error

5. How Can I Pass Data Between the Server Side and the Client Side VB/JScript

6. store server-side array in client side

7. Client-side Subroutine calling Server-Side Subroutine

8. pass server side vbscript to client side javascript

9. Client side VS server side

10. Client side scripting / server side scripting

11. Client Side and Server Side Scripts

12. Server side or client side cursors?

 

 
Powered by phpBB® Forum Software