How to invoke the default mail client from VC
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hello All, The sample code below can be used to send a mail message using the Outlook. How to make that generic to pick the default mail client? ********************************************* Set myOlApp = CreateObject("Outlook.Application") Set myItem = myOlApp.CreateItem(olMailItem) Set myAttachments = myItem.Attachments myAttachments.Add "C:\Hello.txt", olByValue, 1, "Hello World" Set myRecipient = myItem.Recipients.Add("rainadeepti@rediffmail.com") 'save the item before sending it off. myItem.Save myItem.Display ********************************************* Thanks, Deepti