Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding attachment to Outlook Email
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
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:

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)
Reply


Messages In This Thread
Adding attachment to Outlook Email - by mv8167 - 05-05-2012, 12:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 937 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Pages and Frames adding _1, _2, _3... zunebuggy 1 1,513 05-30-2017, 12:17 AM
Last Post: Vichu M J
  Adding negative amount in webedit Rose 1 2,012 06-30-2016, 09:34 PM
Last Post: babu123
  Adding data into rows that add dynamically with setcelldata azar81 4 5,671 04-13-2015, 05:24 PM
Last Post: vidya2k2
  How to attach HTML file to Email Naresh 0 2,750 04-06-2015, 02:04 PM
Last Post: Naresh

Forum Jump:


Users browsing this thread: 1 Guest(s)