On the script player i am using it wont let me do it that way here is a sample of my code that works but i dont know how to attach the email
Sub MapiSendMail
Dim objSession As Object
Dim objMessage As Object
Dim objRecipient As Object
Dim sProfile As String
Dim sSubjPrmpt As String
Dim sTextPrmpt As String
Dim sEmailPrmpt As String
Dim sMsgTitle As String
sProfile = "Time Warner"
sMsgTitle = "Mapi Macro Example"
Set objSession = CreateObject("mapi.session"
objSession.Logon profileName:=sProfile
Set objMessage = objSession.Outbox.Messages.Add
objMessage.Subject = Subject
objMessage.Text = MessageBody
Set objRecipient = objMessage.Recipients.Add
objRecipient.Name = EmailAddress
objRecipient.Resolve
objMessage.Send showDialog:=False
MsgBox "Message sent successfully!"
objSession.Logoff
End Sub