 |
|
|
|
| Author |
Message |
Eric
Joined: 05 Aug 2007 Posts: 12
|
Posted: Fri Feb 01, 2008 4:57 pm Post subject: 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
Archived from group: microsoft>public>exchange>development |
|
| Back to top |
|
 |
Eric
Joined: 05 Aug 2007 Posts: 12
|
Posted: Fri Feb 01, 2008 9:46 pm Post subject: 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 @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
> |
|
| Back to top |
|
 |
Glen Scales [MVP]
Joined: 05 Aug 2007 Posts: 92
|
Posted: Sat Feb 02, 2008 3:36 pm Post subject: 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 @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
> @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
>>
>
>
|
|
| Back to top |
|
 |
|
|
| Related Topics: | How do I view the XML message being sent to the server? Exch How can I view the raw XML being sent in a message? I am working with the generated proxy objects and I'm trying to troubleshoot an error. Any help here? Thanks, ~ck
From Item to Message/Appointment/Task Just wondering if there is a smart way using CDOEX to go from an Item objekt to either a Message or Appointment object? My current alternative is to check the contentclass of the Item object, and then open the element again using the right class. I would'
Extract original FROM address of forwarded message I try to develop a program that runs against a service mailbox c. How can I get adress A for those messages that are sent from A to address B and to C? For those forwarded messages, the sender is B and receipient is C. I can parse messag
Exchange 2007 Routing Agent - Attaching A Message I'm writing a routing agent that generates notifications when a message fails validation. I want to attach the original message to the validation failure message we send to the sender and I'm not having much luck. My many attempts have meet with failure a
OWA 2007 Forms, Toolbars, and Send Message Customizations We are attempting to customize Outlook 2007 Web Access (OWA) and have some concerns about integration points. Specifically, we would like to find the most unobtrusive way to intercept "send message" clicks in the user interface as well as customize messa |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|