Hi Rjurgens,
Please use the below function...all yo u need to do is place create a function call to that function in the last action of your test script.
Example:
If DataTable("Status",dtGlobalSheet) = "Pass" Then
aTo = "emailaddress"
Subject = "Test passed"
TextBody = "your comment"
Call SendMailaTo, Subject, TextBody)
End If
Function SendMail(aTo, Subject, TextBody)
'Create an Outlook object
Dim Outlook 'As New Outlook.Application
Set Outlook = CreateObject("Outlook.Application")
'Create e new message
Dim Message 'As Outlook.MailItem
Set Message = Outlook.CreateItem(olMailItem)
With Message
'You can display the message To debug And see state
'.Display
.Subject = Subject
.Body = TextBody
'Set destination email address
.Recipients.Add (aTo)
'Set sender address If specified.
Const olOriginator = 0
'Send the message
.Send
End With
End Function
Let me know if this wot you were looking after..
and if you stil have pbs..plz let me know,
thx,
kev