Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outlook question
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
This code worked for me when outlook is opened.

Code:
Set MyApp = CreateObject("Outlook.Application")
Set MyItem = MyApp.CreateItem(0) 'MailItem
With MyItem
.To = "a@a.com"
.Subject = "test"
.ReadReceiptRequested = False
.HTMLBody = "A new project has been created!"
'.display
'SendKeys "%{s}", True
'Type alt+micEnter

.Attachments.Add("c:\test1.txt")
.Send

End With
Reply


Messages In This Thread
Outlook question - by mv8167 - 09-08-2012, 12:23 AM
RE: Outlook question - by freeboynil - 09-09-2012, 11:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Clicking a link in an outlook email using QTP kirti 0 5,381 06-15-2014, 01:25 AM
Last Post: kirti
  Getting Application Error while launching Outlook yogesh kancherla 3 3,089 10-29-2012, 12:17 PM
Last Post: krr
  Automating Outlook PrabhatN 14 15,410 09-08-2012, 02:01 AM
Last Post: Jiju8621
  Adding attachment to Outlook Email mv8167 4 5,270 05-09-2012, 10:52 PM
Last Post: mv8167
  Outlook confirmation message ksrikanth2k9 6 6,215 04-07-2011, 03:51 PM
Last Post: ksrikanth2k9

Forum Jump:


Users browsing this thread: 1 Guest(s)