Here is the sample code, it use VBA
First you should create a reference to the Outlook Object Library in the VBEditor
Dim objOL As New Outlook.Application
Dim objMail As MailItem
Set objOL = New Outlook.Application
Set objMail = objOL.CreateItem(olMailItem)
With objMail
.To = "name@domain.com"
.Subject = "whatever"
.Body = "this is a test" + vbCrLf
.Attachments.Add "C:\1.prn", _
olByValue, , "print file 1"
.Attachments.Add "C:\2.prn", _
olByValue, , "print file 2"
.Display
End With
Set objMail = Nothing
Set objOL = Nothing
if you want automatic send, change .Display to .Send
First you should create a reference to the Outlook Object Library in the VBEditor
Dim objOL As New Outlook.Application
Dim objMail As MailItem
Set objOL = New Outlook.Application
Set objMail = objOL.CreateItem(olMailItem)
With objMail
.To = "name@domain.com"
.Subject = "whatever"
.Body = "this is a test" + vbCrLf
.Attachments.Add "C:\1.prn", _
olByValue, , "print file 1"
.Attachments.Add "C:\2.prn", _
olByValue, , "print file 2"
.Display
End With
Set objMail = Nothing
Set objOL = Nothing
if you want automatic send, change .Display to .Send