Currently, I'm using MS Office Professional Plus 2010 and Windows 8.1. This code worked just fine then I started getting the 287 Error (Application Defined error). This is pretty frustrating any thoughts on how I can get it to work consistently????? Thank you in advance!!
PHP:
Function SendStuff_THISWORKED()
Dim Email As String
Dim objOutlook As Object
Dim objEmail As Object
Set objOutlook = CreateObject("Outlook.Application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = "xxxxxxx@xxxxxx.com"
'.CC = strto
'.BCC = strto
.Subject = "Subject"
.Body = "Body"
.Send
End With
Set objOutlook = Nothing
Set objEmail = Nothing
End Function