i have code that creats and send an email after my testing completes. But I cannot seem to get the attachment to attach in Outlook v2007 pro.
My code is such:
My code is such:
Code:
'Returns O:\QTP Tests\NightlyRegressionTesting\Tests\Image Access - Check Fax Status by ENV\Res##
msgbox strAttachment
strAttachment = strAttachment & "\Report\Results.xml"
'Returns O:\QTP Tests\NightlyRegressionTesting\Tests\Image Access - Check Fax Status by ENV\Res##\Report\Results.xml
msgbox strAttachment
'all three FAIL
newMail.AddAttachments(strAttachment)
newMail.Attachments.Add(strAttachment)
newMail.Attachments(strAttachment)