thebigcheese
Technical User
The following code allows you to send a mail message via Outlook, however I want to know if it is possible to send an email via Outlook Express?
Does anyone have code samples?
Sub SendMail(strMsg as String)
Dim OlkApp As Object 'Outlook Application
Dim NewMail As Object 'Mail Item
Set OlkApp = CreateObject("Outlook.Application"
Set NewMail = OlkApp.CreateItem(olMailItem)
With NewMail
.To = "John Doe"
' or you can put .To = "jdoe@industry.com"
.Body = "This is your message"
.Subject = strMsg
.Importance = 2 'olImportanceHigh not understood by SBL.
.Send
End With
End Sub
Thanks!
Does anyone have code samples?
Sub SendMail(strMsg as String)
Dim OlkApp As Object 'Outlook Application
Dim NewMail As Object 'Mail Item
Set OlkApp = CreateObject("Outlook.Application"
Set NewMail = OlkApp.CreateItem(olMailItem)
With NewMail
.To = "John Doe"
' or you can put .To = "jdoe@industry.com"
.Body = "This is your message"
.Subject = strMsg
.Importance = 2 'olImportanceHigh not understood by SBL.
.Send
End With
End Sub
Thanks!