S
Steve
Hi all,
I'm trying to create a new MailItem from within an AppointmentItem but for
some reason, the code I'm using (see below) is creating a new blank
AppointmentItem instead. Can anyone offer any insight?
Dim olApp
Dim objMail
Set olApp = CreateObject("Outlook.Application")
Set objMail = olApp.CreateItem(olMailItem)
With objMail
.To = "(e-mail address removed)"
.CC = "(e-mail address removed)"
.Subject = "Whatever"
.Body = "Hello"
.Attachments.Add "c:\boot.ini"
.Display
End With
I'm trying to create a new MailItem from within an AppointmentItem but for
some reason, the code I'm using (see below) is creating a new blank
AppointmentItem instead. Can anyone offer any insight?
Dim olApp
Dim objMail
Set olApp = CreateObject("Outlook.Application")
Set objMail = olApp.CreateItem(olMailItem)
With objMail
.To = "(e-mail address removed)"
.CC = "(e-mail address removed)"
.Subject = "Whatever"
.Body = "Hello"
.Attachments.Add "c:\boot.ini"
.Display
End With