Check this link to Send email with an attachment from Outlook in QTP. http://funandknowledge.blogspot.in/2012/08/qtp-script-to-send-email-with.html
On Friday, August 16, 2013 10:40:00 AM UTC+5:30, [email protected] wrote: > > i am using below code. But don't know wht do i need to do to attach an > attachment. When i run the below desc it gives me error on attachment/ > > > Set objOutlook = CreateObject("Outlook.Application") > Set myMail = objOutlook.CreateItem(0) > > myMail.To = "[email protected] <javascript:>" > myMail.Subject = "Sending mail from using QTP" > > myMail.Attachemet.add="C:\Users" > > myMail.Body= "Test Mail" > > 'Send the mail > myMail.Send > Wait(3) > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
