Just a label with my name on it that when clicked on it launches the mail service an puts my name in the 'To:' box but doesn't automatically send. just like clicking on a mailto: hyperlink on a web page.
Sub Send_Msg()
Dim objOL As New Outlook.Application
Dim objMail As MailItem
Set objOL = New Outlook.Application
Set objMail = objOL.CreateItem(olMailItem)
With objMail
.To = "name.domain.com"
.Subject = ""
.Body = ""
.Display
End With
Set objMail = Nothing
Set objOL = Nothing
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.