Browse by Tags

All Tags » devmsgteam » example   (RSS)
Showing page 1 of 2 (19 total posts)
  • Howto: Add a body part to a message using CDOSYS.

    The sample below shows how to add an additional body part to a message using cdosys. This example demonstrates adding a "text/calendar" (vcalendar) body part, however it should be possible to use this to add "text/plain", "text/html" and other types. In the sample, "this.VCalendarText" holds the text to be written to the body part (in this case its a VCalendar meeting request. //============================ VCalendar ============================== if (this.AddVCalendar == true) { oMsg.BodyPart.ContentClass
    Posted to Dan's WebDAV 101 (Weblog) by danba on July 16, 2008
    Filed under: CDOSYS, HOWTO, CDOEX, VCalendar, appointment, example, message body, meeting request, DevMsgTeam, text/calendar, body part, text, html, alternateview, bodypart, text/plain, meeting.ics, vevent, reqest, webdav101blog
  • Howto: Add a body part using System.Net.Mail

    The sample below shows how to add an additional body part to a message using System.Net.Mail. This example demonstrates adding a "text/calendar" (vcalendar) body part, however it should be possible to use this to add "text/plain", "text/html" and other types. In the sample, "this.VCalendarText" holds the text to be written to the body part (in this case its a VCalendar meeting request. //======================================================================= // Set_SSNM_BodyPart_VCalendar // // oMsg
    Posted to Dan's WebDAV 101 (Weblog) by danba on July 16, 2008
    Filed under: HOWTO, System.Net.Mail, VCalendar, appointment, example, message body, meeting request, DevMsgTeam, text/calendar, body part, text, html, alternateview, bodypart, text/plain, meeting.ics, vevent, reqest, webdav101blog
  • Example of setting headers with System.Web.Mail

    //============================ Optional Settings ======================== if (this.Priority.Length != 0) { if (this.Priority == "Non Urgent") { oMsg.Priority = System.Web.Mail.MailPriority.Low; }; if (this.Priority == "Normal") { oMsg.Priority = System.Web.Mail.MailPriority.Normal; }; if (this.Priority == "Urgent") { oMsg.Priority = System.Web.Mail.MailPriority.High; }; } if (this.RequestReadReceipt == true) { oMsg.Fields["urn:schemas:mailheader:disposition-notification-to"] = this.From; } if (this.RequestDeliveryReceipt
    Posted to Dan's WebDAV 101 (Weblog) by danba on July 16, 2008
    Filed under: System.Web.Mail, HOWTO, C#, example, DevMsgTeam, custom, Disposition-Notification-To, RequestDeliveryReceipt, Return-Receipt-To, priority, sender, Return-Path, ReturnPath, mail headers, Sensitivity, ReplyTo, Reply-To, custom mail headers, urn:schemas:mailheader:priority, urn:schemas:mailheader:importance, importance, webdav101blog
  • Example of setting headers with CDOSYS

    //============================ Optional Settings ======================== if (this.Priority.Length != 0) { // Well... it seems that priority is not what needs to be set to get priority set... // Looks like setting importance will set priority... at least for cdosys... hmmm if (this.Priority == "Non Urgent") { oMsg.Fields["urn:schemas:mailheader:importance"].Value = "Low"; //oMsg.Fields["urn:schemas:mailheader:priority"].Value = "Nonurgent"; // -1 }; // -1 if (this.Priority == "Normal") { oMsg.Fields["urn:schemas:mailheader:importance"].Value
    Posted to Dan's WebDAV 101 (Weblog) by danba on July 16, 2008
    Filed under: CDOSYS, HOWTO, CDOEX, C#, example, DevMsgTeam, custom, Disposition-Notification-To, RequestDeliveryReceipt, Return-Receipt-To, priority, sender, Return-Path, ReturnPath, mail headers, Sensitivity, ReplyTo, Reply-To, custom mail headers, urn:schemas:mailheader:priority, urn:schemas:mailheader:importance, importance, webdav101blog
  • Example of setting headers with System.Net.Mail

    Here is a partial sample on setting header fields with System.Net.Mail: //============================ Instance Message =========================== oMsg = new System.Net.Mail.MailMessage(); //============================ Optional Settings =========================== if (this.Priority.Length != 0) { if (this.Priority == "Non Urgent") { oMsg.Priority = System.Net.Mail.MailPriority.Low; }; if (this.Priority == "Normal") { oMsg.Priority = System.Net.Mail.MailPriority.Normal; }; if (this.Priority == "Urgent")
    Posted to Dan's WebDAV 101 (Weblog) by danba on July 16, 2008
    Filed under: HOWTO, System.Net.Mail, example, DevMsgTeam, custom, Disposition-Notification-To, RequestDeliveryReceipt, Return-Receipt-To, priority, sender, Return-Path, ReturnPath, mail headers, Sensitivity, ReplyTo, Reply-To, custom mail headers, webdav101blog
  • Howto Add an Attachment with Webdav

    There is no mechanism to add an attachment in WebDAV. You will need to create/recreate the item using a WebDAV PUT. The text you would be putting would be the mime of the item, which also contains the attachment. It’s useful here to use CDOSYS to create a message and add an attachment – then extract the MIME from the message and use it for the WEBDAV PUT. You will need a header of "translate" set to "f". If the message already exists, you will need to, you must do a GET on the message stream, which
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: WebDAV, Exchange, mime, message, get, put, example, attachmentment, add, DevMsgTeam, webdav101blog
  • HOWTO: VB - Reading Delegates WebDAV Sample

    Private Sub Command1_Click() '===================================================== 'DoXML takes the href to a document 'and returns the MAPI PR_ENTRYID property expressed in 'a hexadecimal string format such as is used by CDO 1.21 'Function DoXML(strHref) Dim objX Dim objXMLdoc Dim objNode Dim strR As String Dim retXML As String Dim parseStringtemp As String Dim parseString As String strHref = "<<Error! Hyperlink reference not valid.> folders/public folder/subject.eml>" '<< http://servername/exchange/mailboxname/
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: HOWTO, WebDAV, delegates, VB, read, file, vb script, example, examples, write, create, delegate, DevMsgTeam, howto vbscript, webdav101blog
  • Howto: VB - An example to create a public folder with storage limit settings.

    In this example, the following properties are set during the folder creation. outlookfolderclass contentclass The warning limit in KB Prohibit Post at (KB). Maximum item Size (KB) addressbookdisplayname isreadonly ishidden When reading and setting certain properties, it’s necessary to use the exchange admin path. This path provides special admin privileges. An Exchange Admin login must be used when using this path. Private Sub cmdMakeFolder_Click() Dim XMLreq As New MSXML2.XMLHTTP40 Dim sReq As String
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: HOWTO, VB, file, folder, vbscript, vb script, example, url, examples, write, create, urn:content-classes:folder, storagequotaissuewarninglimit, storage, folder limits, admin, storage folder limits, limits, addressbookdisplayname, outlookfolderclass, ishidden, isreadonly, contentclass, limit, folders, Maximum, mkcol, DevMsgTeam, gt, webdav101blog
  • HOWTO: Write a file using VBScript

    '------------------------------------------------------------------------------- ' WriteFileText - Used to write an item to a file in a folder. ' Parameters: ' sFile - The file to read ' ' Returns: ' A string containing the content of the file. '------------------------------------------------------------------------------- Function WriteFileText(sFilePath, sText) Dim objFSO 'As FileSystemObject Dim objTextFile 'As Object Const ForReading = 1 Const ForWriting = 2 Const ForAppending = 8 Set objFSO
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: HOWTO, VB, file, vbscript, vb script, example, examples, FileSystemObject, write, create, DevMsgTeam, webdav101blog
  • Howto: VBScript - Read a file

    '----------------------------------------------------------------------------------- ' ReadFileText - Used to read a file in a folder. ' Parameters: ' sFile - The file to read ' ' Returns: ' A string containing the content of the file. '----------------------------------------------------------------------------------- Function ReadFileText (sFile) Dim objFSO 'As FileSystemObject dim oTS dim sText Set objFSO = CreateObject("Scripting.FileSystemObject") Set oTS = objFSO.OpenTextFile(sFile) sText =
    Posted to Dan's WebDAV 101 (Weblog) by danba on March 12, 2008
    Filed under: HOWTO, VB, file, vbscript, vb script, example, examples, FileSystemObject, DevMsgTeam, read edb, webdav101blog
1 2 Next >

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