Functional Automation

RSS
  • Home
  • Manual
  • Automation
  • Performance
  • PMP
  • Interview Tips
  • Work Ethics
  • Contact

Emailing File as attachment using Function

Wednesday, May 12, 2010 by Mallik | 0 comments
SendTo = "abc@abc.com
Attachment = "C:\abc.txt"
 Set ol=CreateObject("Outlook.Application")
     Set Mail=ol.CreateItem(0)
     Mail.to = SendTo
     Mail.Subject="Test Results "
     Mail.Body=" Test Results"
   '  If (Attachment <> "") Then
       Mail.Attachments.Add(Attachment)
    ' End If
     Mail.Send
     'ol.Quit
     Set Mail = Nothing
     Set ol = Nothing

         


0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

View My Profile

View Mallik Dhupaguntla's profile on LinkedIn

Blog Archive

  • ▼  2010 (5)
    • ▼  May (4)
      • Benifits of Framework
      • Automation Objective & Framework
      • Emailing File as attachment using Function
      • Time Stamp Function
    • ►  April (1)

QA Followers

Copyright © 2010 Functional Automation