Dim Outl as Object

1
Dim Outl As Object Outl = CreateObject("Outlook.Application") If Outl IsNot Nothing Then Dim omsg As Object omsg = Outl.CreateItem(0) '=Outlook.OlItemType.olMailItem' 'set message properties here...' omsg.Display(True) 'will display message to user End If Imports System.Diagnostics Dim address As String Process.Start(String.Format("mailto:{0}", address)) ' set all possible parameters:' 'Process.Start(String.Format("mailto:{0}? subject={1}&cc={2}&bcc={3}&body={4}", address, subject, cc, bcc, body)) ' also escape spaces:' 'Process.Start(String.Format("mailto:{0}? subject=\"{1}\"&cc={2}&bcc={3}&body=\"{4}\"", address, subject, cc, bcc, body))

description

Dim Outl as Object

Transcript of Dim Outl as Object

Dim Outl As Object Outl = CreateObject("Outlook.Application") If Outl IsNot Nothing Then Dim omsg As Object omsg = Outl.CreateItem(0) '=Outlook.OlItemType.olMailItem' 'set message properties here...' omsg.Display(True) 'will display message to user End If

Imports System.Diagnostics Dim address As String Process.Start(String.Format("mailto:{0}", address)) ' set all possible parameters:' 'Process.Start(String.Format("mailto:{0}?subject={1}&cc={2}&bcc={3}&body={4}", address, subject, cc, bcc, body)) ' also escape spaces:' 'Process.Start(String.Format("mailto:{0}?subject=\"{1}\"&cc={2}&bcc={3}&body=\"{4}\"", address, subject, cc, bcc, body))