Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I use this to send via outlook. Just reference the Microsoft Outlook DLL</p> <pre><code> Private Shared Sub SendMail(pMessage As String) Dim objMissing As Object = Type.Missing Dim objOutlook As Outlook.Application = Nothing Dim objNS As Outlook.NameSpace = Nothing Dim objMail As Outlook.MailItem = Nothing Try ' Start Microsoft Outlook and log on with your profile. ' Create an Outlook application. objOutlook = New Outlook.Application() ' Get the namespace objNS = objOutlook.GetNamespace("MAPI") ' Log on by using a dialog box to choose the profile. objNS.Logon(objMissing, objMissing, False, False) ' create an email message objMail = CType(objOutlook.CreateItem(Outlook.OlItemType.olMailItem), Outlook.MailItem) ' Set the properties of the email. With objMail .Subject = "Subject Line" .To = "emailaddress@domain.com" .Body = pMessage .Display(True) End With Catch ex As Exception Finally ' Manually clean up the explicit unmanaged Outlook COM resources by ' calling Marshal.FinalReleaseComObject on all accessor objects. ' See http://support.microsoft.com/kb/317109. If Not objMail Is Nothing Then Marshal.FinalReleaseComObject(objMail) objMail = Nothing End If If Not objNS Is Nothing Then Marshal.FinalReleaseComObject(objNS) objNS = Nothing End If If Not objOutlook Is Nothing Then Marshal.FinalReleaseComObject(objOutlook) objOutlook = Nothing End If End Try End Sub </code></pre> <p>MSDN has a lot of info on this as well.</p> <p><a href="http://msdn.microsoft.com/en-us/library/office/ff865816.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/office/ff865816.aspx</a></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.
 

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