is it possible to send the qtp generated report using email?
i m converting the report into html format. now i wamt to send this
report to my mail box.
i m using Microsoft Outlook Express 6 for mailing purpose
Set olapp = CreateObject("Outlook.Application")
Set olns = olapp.GetNameSpace("MAPI")
olns.logon
Set objfolder=olns.getdefaultfolder(6)
objfolder.display
set msg = olapp.createitem(olMailitem)
Set rcp = msg.recipients.Add ("xxx@gmail.com")
msg.subject = "Automated mail from QTP - Result "
msg.body = "XXXXXXXXXXXXXXX"
msg.Attachments.Add ("Z:\Sample.xls")
msg.send