Some Error on e-mail

  • Thread starter Thread starter leungkong
  • Start date Start date
L

leungkong

I use the following code to send e-mail.
It is work for most of my colleague. But some of my colleague got problem in
“.send “
Please help...Thanks a lot.

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = EmailAddr
.Cc = CcAddr
.Subject = esubject
.Body = ebody
.Attachments.Add (folder & SPfilename)
.Send ' <-- Problem in here!!!
End With
 
Try replacing the ".send" line with ".display" and check if the
displayed mail is ok.
HTH
Daniel
 
Back
Top