Dim OL As Outlook.Application Dim olMail As Outlook.MailItem Dim myattachments As Outlook.Attachments Set OL = CreateObject("Outlook.Application") Set olMail = OL.CreateItem(olMailItem) Set myattachments = olMail.Attachments olMail.To = "mymaild" olMail.CC = "mymaild" olMail.Body = "TEST MAIL NOW" olMail.Subject = "TEST MAIL NOW" olMail.Send Set olMail = Nothing Set OL = Nothing
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)