VB Script error vbs error80004004 source null

  • Thread starter Thread starter musneem
  • Start date Start date
M

musneem

Set MyApp = CreateObject("Outlook.Application")
Set MyItem = MyApp.CreateItem(0) 'olMailItem
With MyItem
.To = "(e-mail address removed)"
.Subject = "Sending using VBE-mail script"
.HTMLBody = "Monitoring is done"
End With
MyItem.Send

its not running and popping up with error message
error80004004 source null

Andy help is appreciated??
 
Back
Top