Browse by Tags

All Tags » devmsgteam » attachment   (RSS)
Showing page 1 of 2 (13 total posts)
  • Playing with Journal Items & Outlook Object Model # 3

    Reading Journal attachments using Outlook Object Model: This time, i tried to read all the email and their attachments using Outlook Object Model. I used the following code snippet to do this. 'Code Snippet : How to retrieve Outlook attachments using Visual Basic for Application (VBA) Dim omailitem As Outlook.JournalItem Dim myJournal As Outlook.Items Dim oattach As Outlook.Attachment   Set myNamespace = Application.GetNamespace( "MAPI" ) Set myJournal = myNamespace.GetDefaultFolder(olFolderJournal).Items
    Posted to Le Café Central de DeVa (Weblog) by deva on September 28, 2009
    Filed under: Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, Programming, development, OLE, Attachment, Outlook, Journal, Journal Programming
  • OOM : How to retrieve Outlook attachments ( Reference, Value, Embedded and OLE) using VBA?

    Please find the following code snippet for retrieving various Outlook attachments  - Reference, Value, Embedded and OLE using Outlook Object Model (OOM) & VBA: 'Code Snippet : How to retrieve Outlook attachments using Visual Basic for Application (VBA) Dim omailitem As Outlook.MailItem Dim oattach As Outlook.Attachment Dim ofolder As Outlook.Folder   Set ofolder = Application.Session.PickFolder Debug.Print "Total Items available in Folder : " & ofolder.Items.Count  
    Posted to Le Café Central de DeVa (Weblog) by deva on April 29, 2009
    Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, OLE, Attachment, Outlook
  • 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
  • Monitoring event sink # 28 - Attachments Are Missing When You Use an Event Sink to Modify the Stream of Messages

    One of my customer reported that they have a store event sink, which is used to modify the stream of incoming messages in Exchange Server environment (2003). But their attachments are missing when they open & view the message in Microsoft Outlook or in Microsoft Outlook Web Access (OWA); But contrarily when we view the message in Microsoft Outlook Express or by using Collaboration Data Objects (CDO), we can open and view the attachments in the message. When we investigated regarding the issue,
    Posted to Le Café Central de DeVa (Weblog) by deva on November 10, 2008
    Filed under: Monitoring Event Sink, Store, Mailbox Store, Exchange Server 2003, CDO, Tutorials, Outlook 2003, Store Sink, mailbox, regevent.vbs, KB, Events, Errors, Troubleshooting, Outlook UI, DevMSGTeam, Known Issues, Programming, hotfix, OWA, Outlook Web Access, Outlook Errors, Outlook Express, systemmailbox, Stream Messages, Attachment
  • Monitoring event sink # 27 - After you register an event sink on a mailbox store, the Microsoft Exchange Information Store service does not start in Exchange Server 2003

    Category: (100) Event ID: 1000 Date: Date Time: Time User: N/A Computer: Computer_Name Description
    Posted to Le Café Central de DeVa (Weblog) by deva on November 10, 2008
    Filed under: Monitoring Event Sink, Store, Mailbox Store, Exchange Server 2003, Tutorials, Migration, Outlook 2003, EXOLEDB, Store Sink, mailbox, regevent.vbs, KB, Events, Errors, Troubleshooting, Outlook UI, DevMSGTeam, Known Issues, Programming, hotfix, Application Log, OWA, Outlook Web Access, Outlook Errors, Outlook Express, systemmailbox, Stream Messages, Attachment, criteria
  • 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
  • Howto Delete Attachments with WebDAV

    The DELETE verb only works on Exchange 2003 SP1 - it will not work on any earlier version/service pack. CDOEX, CDO 1.21, Extended MAPI, etc can do this on Exchange 2000 or 2003. One possible work-around is to read the message stream using a WebDAV GET, modify the stream to remove the attachment and then do a PUT to write it back. You will want to watch-out to be sure that you do not lose any custom properties which you have set. Also, you may use an unsupported OWA command to delete the attachment
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: HOWTO, OWA, Exchange, attachment, delete, extension, single-sign-on, single sign-on, sample, cmd, editattach, webbdav, DevMsgTeam, isapi filter, webdav101blog
  • 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
  • Howto: WebDAV PROPFIND using VB.NET

    ' This example shows how to do a PROPFIND using VB.NET ‘ VB.NET PROPFIND ‘ TODO: Create a VB.NET winform with a button and a big multiline text box ‘ TODO: Add references to System.Web, System.XML and System.IO ‘ TODO: Add the code to the form. ‘ TODO: Do the TODO sections in the code. Imports System.Net Imports System.Web Imports System.IO Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Dim sUri As String = " http://myexserver/exchange/User1/Inbox/
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: WebDAV, Exchange, attachments, attachment, message, vb.net, managed, sample, item, folder, 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