by mparker (1 Submission)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 23rd April 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Send mail using Microsoft Outlook without having to include references in your program.
ByVal SubjectText As String, _
ByVal BodyText As String)
'------------------------------------------------------
'This has been tested with Outlook98 and 2000...
'It does not require any project references.
'Should work with other versions (?)
'------------------------------------------------------
Dim objOutlook As Object
Dim objOutlookMsg As Object
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(0)
With objOutlookMsg
.To = EMailAddress
.Subject = SubjectText
.Body = BodyText
.Send
End With
Set objOutlookMsg = Nothing
Set objOutlook = Nothing
End Sub
No comments have been posted about Send mail using Microsoft Outlook without having to include references in your program.. Why not be the first to post a comment about Send mail using Microsoft Outlook without having to include references in your program..