Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outlook using QTP
#12
Solved: 10 Years, 10 Months ago
Hi,

try this,

Code:
Public Function SendMail(SendTo, Subject, Body,Attachment)
       Set ol =  CreateObject("Outlook.Application")
       Set Mail = ol.CreateItem(0)
       Mail.to = SendTo
       Mail.Subject = Subject
       Mail.Body = Body
If(Attachment <> "") Then
Mail.Attachments.Add(Attachment)
End IF
       Mail.Send

       Set Mail = nothing
       Set ol = nothing
      
End Function
Reply


Messages In This Thread
Outlook using QTP - by dsharma - 01-21-2008, 09:15 AM
RE: Outlook using QTP - by dsharma - 01-21-2008, 05:10 PM
RE: Outlook using QTP - by Rajashekar Gouda - 01-21-2008, 05:16 PM
RE: Outlook using QTP - by chrism2202 - 01-23-2008, 02:17 AM
RE: Outlook using QTP - by keyurpathak - 04-04-2008, 01:44 AM
RE: Outlook using QTP - by vamshiram - 06-25-2008, 07:09 PM
RE: Outlook using QTP - by deeps_aj - 09-23-2008, 06:43 PM
RE: Outlook using QTP - by srivania - 09-25-2008, 02:32 PM
RE: Outlook using QTP - by navyasatish - 07-18-2008, 07:21 AM
RE: Outlook using QTP - by venkatbatchu - 10-20-2009, 04:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting Email Body from Outlook waseem.khan.91 0 1,963 03-04-2019, 02:53 PM
Last Post: waseem.khan.91
  Extracting Email Body from Outlook waseem.khan.91 0 1,064 03-01-2019, 02:51 PM
Last Post: waseem.khan.91
  Unable to send an email from Outlook which is already opened as draft attiliv 0 2,163 03-24-2013, 11:14 AM
Last Post: attiliv
  Outlook automation issue - Report message in a shared mail box chsurya 0 2,596 03-11-2011, 06:33 PM
Last Post: chsurya
  MS OutLook Email Notification nelmanoj 0 2,393 12-27-2010, 01:05 PM
Last Post: nelmanoj

Forum Jump:


Users browsing this thread: 1 Guest(s)