Don't use Outlook. Use SMTP (document I found from Microsoft and it works like a dream). This script is what I have on the Document Error:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Integration Error"
objMessage.Sender = "email address"
objMessage.To = "email address"
objMessage.TextBody = "Error in integration: Name of Integration" & VbCrLf & VbCrLf
objMessage.TextBody =objMessage.TextBody & "Batch ID: " & SourceFields("Batch")
objMessage.TextBody =objMessage.TextBody & VbCrLf &"Document Number: " & SourceFields("DocNo")
objMessage.TextBody =objMessage.TextBody & VbCrLf & "Customer ID: " & SourceFields("CustomerID")
objMessage.TextBody =objMessage.TextBody & VbCrLf & "Date of Integration: " & Date()
objMessage.TextBody =objMessage.TextBody & VbCrLf & "Time Error Occurred: " & Time()
'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.
objMessage.Configuration.Fields.Item _
("
= 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("
= "input your smtp server here"
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("
= 25
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
objMessage.Send