Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test End Notification
#4
Not Solved
Hi,

The code for sending mail through qtp is in this function..is workign for me when i execution the function in QTP but when i open .vbs file it trhows syntax error..
Code:
Public Function SendMail(SendTo,SendCC,Subject,Body,Attachment)
    Dim olApp
    Dim olNs
    Dim olMail
    Set olApp = GetObject(, "Outlook.Application")
    On Error GoTo 0
    Set olMail = olApp.CreateItem(olMailItem)
    With olMail
        .To = SendTo
        .CC = SendCC
        .Subject = Subject
        .Body = Body
        .Attachments.Add(Attachment)
        .Display
    .Send
    End With
    Set olMail = Nothing
    Set olApp = Nothing
End Function
Reply


Messages In This Thread
Test End Notification - by Anna - 08-11-2008, 10:17 PM
RE: Test End Notification - by surya_7mar - 08-13-2008, 01:14 PM
RE: Test End Notification - by Rashmi - 08-14-2008, 03:25 PM
RE: Test End Notification - by surya_7mar - 08-13-2008, 01:15 PM
RE: Test End Notification - by Anna - 08-18-2008, 08:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 1,117 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Expected End statement error Lavanya N 2 5,224 07-27-2015, 01:52 PM
Last Post: Lavanya N
  closing browser at end bistritapcv 3 6,255 04-12-2013, 07:21 AM
Last Post: basanth27
  How to end action on error adsherman 6 8,519 07-28-2012, 02:16 AM
Last Post: adsherman
  How to read an * at the end of a string sqadri 2 2,613 01-06-2012, 04:01 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 2 Guest(s)