Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>At work we have successfully done this using VSTO. </p> <p>Here is a snippet of some lines we have running on VISTA with Outlook 2007: (the code is in VB.net).</p> <p>Note that the usage is security locked when doing certain things to the outlook object. (to address, body and other properties marked as security risks). We use a 3rd party component (Redemption) to go around this security. If you dont use a security manager of some sort, outlook will give a little popup that something outside is trying to access it and you can give it access in a period of time.</p> <p>The import of the Outlook interface.</p> <pre><code>Imports Outlook = Microsoft.Office.Interop.Outlook </code></pre> <p>This example is to give you some direction, not a full working example.</p> <pre><code>dim MailItem As Microsoft.Office.Interop.Outlook.MailItem ' Lets initialize outlook object ' MailItem = OutlookSession.Application.CreateItem(Outlook.OlItemType.olMailItem) MailItem.To = mailto MailItem.Subject = communication.Subject MailItem.BodyFormat = Outlook.OlBodyFormat.olFormatHTML MailItem.HTMLBody = htmlBody MailItem.Attachments.Add(filename, Outlook.OlAttachmentType.olByValue) ' If True is supplied to Display it will act as modal and is executed sequential. ' SafeMail.Display(True) </code></pre> <p>The OutlookSession in the above example is coming from this Property:</p> <pre><code> Public ReadOnly Property OutlookSession() As Outlook.NameSpace Get If Not OutlookApplication Is Nothing Then Return OutlookApplication.GetNamespace ("MAPI") Else Return Nothing End If End Get End Property </code></pre> <p>As you can see it is using MAPI inside for this.</p> <p>Good luck with it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload