|
|
|
date: Fri, 1 Feb 2008 11:57:30 -0500,
group: microsoft.public.exchange.development
back
Re: EWS, Attach a file to a new message
Would I take the traditional approach of creating a draft email, getting the
id, and attaching the file to the draft item, and then moving it to the sent
folder?
"Eric" wrote in message
news:uK63IOPZIHA.536@TK2MSFTNGP06.phx.gbl...
> Hello,
>
> I currently can create a mail item via Echange Web Services.
>
> I am wondering how to attach a file to the new mail message before it is
> sent.
>
> While creating the message, can I create a FileAttachmentType and set it
> to the MessageType's Attachments property?
>
> I'm thinking not, since I get an error message when trying to Create the
> new mail request item, and the error is in regards to the attachments.
>
> Do I first create the attachment, attached to nothing, and then attach it
> to the new message?
>
> Thanks,
>
> Eric
>
date: Fri, 1 Feb 2008 16:46:35 -0500
author: Eric
Re: EWS, Attach a file to a new message
There are a couple of methods you could use you can do it with one action
but posting the MIME stream of the whole message you want to send or use the
Drafts method. I posted something a while ago that might help
http://gsexdev.blogspot.com/2007/01/sending-attachments-via-exchange-web.html.
Cheers
Glen
"Eric" wrote in message
news:uwdntvRZIHA.1168@TK2MSFTNGP02.phx.gbl...
> Would I take the traditional approach of creating a draft email, getting
> the id, and attaching the file to the draft item, and then moving it to
> the sent folder?
>
> "Eric" wrote in message
> news:uK63IOPZIHA.536@TK2MSFTNGP06.phx.gbl...
>> Hello,
>>
>> I currently can create a mail item via Echange Web Services.
>>
>> I am wondering how to attach a file to the new mail message before it is
>> sent.
>>
>> While creating the message, can I create a FileAttachmentType and set it
>> to the MessageType's Attachments property?
>>
>> I'm thinking not, since I get an error message when trying to Create the
>> new mail request item, and the error is in regards to the attachments.
>>
>> Do I first create the attachment, attached to nothing, and then attach it
>> to the new message?
>>
>> Thanks,
>>
>> Eric
>>
>
>
date: Sat, 2 Feb 2008 10:36:20 +1100
author: Glen Scales [MVP]
|
|