exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to send message with embbeeded images using WebDAV?

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange 2000 Development
Author Message
Julia



Joined: 05 Aug 2007
Posts: 1

PostPosted: Thu Jul 22, 2004 3:01 pm    Post subject: How to send message with embbeeded images using WebDAV? Reply with quote

Hello,

How do i send message with embeeded images using WebDAV?

In outlook i need to set the CID field of the attachemnt
and than using

Thanks.

Archived from group: microsoft>public>exchange2000>development
Back to top
View user's profile Send private message
Michael



Joined: 05 Aug 2007
Posts: 5

PostPosted: Sun Jul 25, 2004 4:08 pm    Post subject: Re: How to send message with embbeeded images using WebDAV? Reply with quote

Using "WebDAV .NET for Exchange", creation of new message with embedded
image:

Message message1 = new Message("image");

message1.AddAttachment("c:\\temp\\image001.gif");

MultiStatus status = resource.CreateItem(message1);

string messageAddress = status.Response[0].HRef;

resource.SetProperty(messageAddress +
"/image001.gif","x3712001f","http://schemas.microsoft.com/mapi/proptag/","im
age001.gif");

resource.SetProperty(messageAddress +
"/image001.gif","x370e001f","http://schemas.microsoft.com/mapi/proptag/","im
age/gif");

resource.SetProperty(messageAddress,MessageProperty.HtmlDescription.Name,Mes
sageProperty.HtmlDescription.Namespace," src=\"cid:image001.gif\">");



"Julia" wrote in message
news:%23K5QDq8bEHA.2844@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> How do i send message with embeeded images using WebDAV?
>
> In outlook i need to set the CID field of the attachemnt
> and than using
>
> Thanks.
>
>
Back to top
View user's profile Send private message
anuragc



Joined: 05 Aug 2007
Posts: 2

PostPosted: Mon Aug 06, 2007 10:51 am    Post subject: Re: How to send message with embbeeded images using WebDAV? Reply with quote

Hi Michael,

Can you tell me how can I do the same in Java? Is there anything specific
we need to do?

Thanks in Advance !!
Back to top
View user's profile Send private message
Henning Krause [MVP - Exc



Joined: 05 Aug 2007
Posts: 142

PostPosted: Tue Aug 07, 2007 12:17 pm    Post subject: Re: How to send message with embbeeded images using WebDAV? Reply with quote

Hello,

you'll need to create the complete mail as RFC 2822 message, including the
necessary MIME boundaries and such and use the PUT command to upload it to
the Drafts folder of a mailbox. Then move the mail to the Mailsubmission
folder (See http://msdn2.microsoft.com/en-us/library/ms878112.aspx)

Kind regards,
Henning Krause

"anuragc" wrote in message @localhost.talkaboutsoftware.com...
> Hi Michael,
>
> Can you tell me how can I do the same in Java? Is there anything specific
> we need to do?
>
> Thanks in Advance !!
>
Back to top
View user's profile Send private message
anuragc



Joined: 05 Aug 2007
Posts: 2

PostPosted: Tue Aug 07, 2007 9:25 am    Post subject: Re: How to send message with embbeeded images using WebDAV? Reply with quote

Hi Henning,

Thanks a lot for your reply. But still I am not able to understand how can
we embed an image with message. Have you done this before? Can you send me
any more related links/material?

Thanks in Advance!!
Anurag.
Back to top
View user's profile Send private message
Henning Krause [MVP - Exc



Joined: 05 Aug 2007
Posts: 142

PostPosted: Tue Aug 07, 2007 11:44 pm    Post subject: Re: How to send message with embbeeded images using WebDAV? Reply with quote

Hello,

see http://tools.ietf.org/rfc/rfc2557.txt and
http://tools.ietf.org/rfc/rfc2822.txt on how to create such messages.

Kind regards,
Henning Krause

"anuragc" wrote in message @localhost.talkaboutsoftware.com...
> Hi Henning,
>
> Thanks a lot for your reply. But still I am not able to understand how can
> we embed an image with message. Have you done this before? Can you send me
> any more related links/material?
>
> Thanks in Advance!!
> Anurag.
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
webdav = get the description of an event in Exchange Hi there, Im trying to display the description or message (subject, dtstart, dtend are all ok) of a calendar entry but I cannot find which schema it belongs to; Is it: or: or: urn:sc

Tom or Mindy? Create IPM.DistList with WebDav and VB.NET?? Hi. Would be very grateful if anyone could point me in the right direction... I am trying to create a personal distribution list in a users contacts folder with webdav (Why is this so carefully left out of the Exchange SDK?) I figured out that http://sche

WEBDAV: how to get a Multiline body in webdav created appoin I am using webdav to create an appointment and post it to a clanedar. When I pass a regular string with carriage returns and linefeeds to the field they do not display. If I try to pass an html formatted string in the fie

WebDav Authentication I'm attempting to write a WebDAV to access contacts, but it is failing when I try the I receive a WebException and conversion from string to double where indicated below I've verified the path to the DL

WebDAV and Exchange Archiving Hello, I have a question regarding how webDAV accesses the Exchange store. Does it go directly to the mailbox, or does it go through the Hub Transport? We are doing an Exchange calendar integration for our application, and it is important that our method
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange 2000 Development All times are GMT
Page 1 of 1

 
Jump to:  
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