Browse by Tags

All Tags » devmsgteam » attachments   (RSS)
Showing page 1 of 2 (13 total posts)
  • Sample: How to get the number of file attachments with EWS.

    Since HasAttachments does not really give you the number of file attachments, we you will find that you need to work around it. You can use code like that below to get the real count of file attachments on an item. // ----------------------------------------------------------------------------------------- // GetFileAttachmentsCount // Returns number of attachments on an item. // ----------------------------------------------------------------------------------------- public static int GetFileAttachmentsCount(
    Posted to Dan's WebDAV 101 (Weblog) by danba on January 10, 2009
    Filed under: attachments, attachment, EWS, Exchange Web Service, List, DevMsgTeam, count, HasAttachments, MSFT
  • Example: Populate a ListView with a list of attachments using EWS

    I thought it would be fun to blog another sample of getting a list of attachments using EWS. So, here is a handly method for populating a list of attachments. // ----------------------------------------------------------------------------------------- // GetFileAttachmentsListLv // Sets a listview to the attachments on an item. // Returns number of attachments. // ----------------------------------------------------------------------------------------- public static int GetFileAttachmentsListLv(
    Posted to Dan's WebDAV 101 (Weblog) by danba on January 10, 2009
    Filed under: attachments, EWS, sample, DevMsgTeam, attachment list
  • Example: Returning a list of attachments using EWS

    Here is a sample on getting and returning a list of attachments on an item using Exchange Web Services (EWS). // //----------------------------------------------------------------------------------------- // GetAttachmentsList. // Gets a list of file attachemnts on an item and puts them into <FileAttachmentType>. // Returns the number of attchments found. // // Here is how you might call this code: // List<FileAttachmentType> attachmentIds = null; // string sLines = string.Empty; // int
    Posted to Dan's WebDAV 101 (Weblog) by danba on January 5, 2009
    Filed under: attachments, EWS, exchange web services, DevMsgTeam, MSFT, attachement
  • mailto - limitations and paths forward

    The mailto tag used in html content is used to load the default mapi client (email client) on the user's box when its link is clicked and have it display a window for sending email. The mailto link can contain basic information such as who the message, subject, etc. There are however some limitations. Things to think about: · The mailto link can only hold so much information (a few K depending upon the version of Internet Explorer (IE)). This may be too limiting for many uses. · Best case, the link
    Posted to Dan's WebDAV 101 (Weblog) by danba on August 22, 2008
    Filed under: HOWTO, attachments, unicode, attachmentment, DevMsgTeam, ie7, ie, utf8, utf-8, maililto, webdav101blog
  • Howto: Read Attachments - Webdav: System.Net.HttpWebRequest vs System.Net.WebClient

    I’ve run into issues with using a GET to read large attachments using HttpWebRequest. Because of this, I use System.Net.WebClient instead. Big attachments will have an error thrown back with HttpWebRequest, however it’s possible to GET the smaller ones. So, since System.Net.WebClient seems to work just as good, I use it for getting attachments. I use HttpWebRequest for everything else. Public Function SaveAttachmentToFile(ByVal sUri As String, ByVal sFileName As String) As Boolean Dim bRet As Boolean
    Posted to Dan's WebDAV 101 (Weblog) by danba on August 14, 2008
    Filed under: HOWTO, attachments, sample, attachmentment, DevMsgTeam, System.Net.WebClient, HttpWebRequest, large attachment, System.Net.HttpWebRequest, WebClient, webdav101blog
  • Adding Inline Attachments with CDOSYS and System.Net.Mail.

    In the following samples, I'm going to send an inline attachment using CDOSYS and System.Net.Mail (SNM). Lets say you have an html document with text above and below a jpg file and you want this document inside of a message you are going to send. Below is the the basic HTML document. Notice that img tag holder the picture and is kept in a div statement. Also, note that the img tag has an src set to "mytestimage". "mytestimage" is the Content ID (ie its a handle/lable/id/etc) for the image content.
    Posted to Dan's WebDAV 101 (Weblog) by danba on July 31, 2008
    Filed under: System.Web.Mail, CDOSYS, System.Net.Mail, attachments, attachment, smtp, DevMsgTeam, html, jpg, contentid, swm, snm, inline, webdav101blog
  • Exchange Protocol Documentation

    Microsoft released preliminary protocol documentation for Exchange 2007 (as well as Microsoft Office 2007 and SharePoint Server) as part of Microsoft's Interoperability Principles. The Exchange protocols are now publicly available on the Open Protocol Specifications section of MSDN in preliminary form for developers to review and provide feedback. You can read more about the announcement in this press release. Here is the press release: Microsoft Publicly Posts Additional Protocol Documentation http://www.microsoft.com/presspass/press/2008/apr08/04-08ProtocolPR.mspx
    Posted to Dan's WebDAV 101 (Weblog) by danba on May 1, 2008
    Filed under: Outlook, meeting, WebDAV, Exchange, properties, security, VCalendar, mime, stream, appointment, distribution, attachments, .msg, mapi, authentication, category, messaging, c++, property, icalendar, availability, folders, descriptor, access, http, rtf, format, transport, meeting requests, guid, autodiscovery, permission, attachent, rfc2445, personal, sms, encode, book, s/mime, rpc, resources, protocol, users, uid, decoding, client, configuration, message body, redirects, X-, rfc2447, rss, ietf, specifications, groups, directory access, protocal, nspi, flagging, journal, mailbox, attachements, extends, personal distribution, flags, provisioned, streams, note, address, events, working, encoding, compressed, search folder, permissions, server, permissible, conversion, standard, schema, hours, directory, body, offline, rfc2446, behalf, structures, notifications, oab, converts, smtp, address book, remote operations, operations, contacts, structure, response messages, MS-OXO-, decode, compressed stream, warning, rights-management, retrieval, information, core, enriched text format, forum, specs, extensions, .msg file, structs, bulk, msg files, object, best body retrieval, voice mail, .msg files, reminder, msg file, bulk data transfer, rights management, enriched, support, mms, templates, pop3, data transfer, phishing, best, compression, document, documentation, DevMsgTeam, webdav101blog
  • Exchange Protocol Documentation

    Microsoft released preliminary protocol documentation for Exchange 2007 (as well as Microsoft Office 2007 and SharePoint Server) as part of Microsoft's Interoperability Principles. The Exchange protocols are now publicly available on the Open Protocol Specifications section of MSDN in preliminary form for developers to review and provide feedback. You can read more about the announcement in this press release. Here is the press release: Microsoft Publicly Posts Additional Protocol Documentation http://www.microsoft.com/presspass/press/2008/apr08/04-08ProtocolPR.mspx
    Posted to Dan's WebDAV 101 (Weblog) by danba on May 1, 2008
    Filed under: Outlook, meeting, WebDAV, Exchange, properties, security, VCalendar, mime, stream, appointment, distribution, attachments, .msg, mapi, authentication, category, messaging, c++, property, icalendar, availability, folders, descriptor, access, http, rtf, format, transport, meeting requests, guid, autodiscovery, permission, attachent, rfc2445, personal, sms, encode, book, s/mime, rpc, resources, protocol, users, uid, decoding, client, configuration, message body, redirects, X-, rfc2447, rss, ietf, specifications, groups, directory access, protocal, nspi, flagging, journal, mailbox, attachements, extends, personal distribution, flags, provisioned, streams, note, address, events, working, encoding, compressed, search folder, permissions, server, permissible, conversion, standard, schema, hours, directory, body, offline, rfc2446, behalf, structures, notifications, oab, converts, smtp, address book, remote operations, operations, contacts, structure, response messages, MS-OXO-, decode, compressed stream, warning, rights-management, retrieval, information, core, enriched text format, forum, specs, docment, extensions, .msg file, structs, bulk, msg files, object, best body retrieval, voice mail, .msg files, reminder, msg file, bulk data transfer, rights management, enriched, support, mms, templates, pop3, struct, data transfer, phishing, best, compression, document, documentation, DevMsgTeam
  • HOWTO: Send Email With Attachment Using VB and WebDAV

    To send an email with WebDAV, you will you will need to create/recreate the item with a WEBDAV PUT using the MIME of the message. It gets tricky when working with attachments. To get around the complexity of sending an email with an attachment, you may want to look at using CDOSYS to build the message to send, then extract the MIME stream (MIME of the message in a string) of the resulting message. For sending the message, you would use a PUT statement to write the stream to a file in the Drafts folder
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: WebDAV, Exchange, stream, attachments, attachment, VB, message, vb6, get, put, proppatch, sample, item, folder, vbscript, script, example, MOVE, destination, ##DavMailSubmissionURI##, submission, submission url, send, DavMailSubmissionURI, drafts, submit, url, DevMsgTeam
  • Howto: WebDAV SEARCH using C#

    ' This example shows how to do a SEARCH using C# // C# Example to SEARCH a mailbox. // TODO: // Add a button and double click on it // Add a multi-line text box and make it big. // Add a project reference to System.Xml, an System.Net // Paste-in the code below // Do the TODO sections in the code. using System.Xml; using System.Net; using System.IO; private void button1_Click(object sender, System.EventArgs e) { string sUri = " http://myemailserver/exchange/auser/inbox/test "; string sUserName = "";
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: WebDAV, Exchange, C#, attachments, attachment, message, Csharp, managed, sample, item, folder, search, script, example, .net, code, DevMsgTeam, webdav101blog
1 2 Next >

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker