Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Fri, 1 Feb 2008 11:57:30 -0500,    group: microsoft.public.exchange.development        back       


EWS, Attach a file to a new message   
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 11:57:30 -0500   author:   Eric

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]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us