M
MUSIWA
Eventually I am trying to send faxes of pdf documents to a hospital multiple
times a day. I am just trying this code but I cannot get the .send to work.
It throws a syntax error. Can someone please help
Set OutProg = CreateObject("outlook.application")
Set OutM = OutProg.CreateItem(olitemType.olmailitem)
With OutM
.subject = "I am trying"
.To = "emailaddress"
.body = "Here we go"
.Importance = Outlook.OlImportance.olImportanceNormal
MsgBox " done"
End With
OutM.Send()?????
Exit Sub
times a day. I am just trying this code but I cannot get the .send to work.
It throws a syntax error. Can someone please help
Set OutProg = CreateObject("outlook.application")
Set OutM = OutProg.CreateItem(olitemType.olmailitem)
With OutM
.subject = "I am trying"
.To = "emailaddress"
.body = "Here we go"
.Importance = Outlook.OlImportance.olImportanceNormal
MsgBox " done"
End With
OutM.Send()?????
Exit Sub