Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-27-2008, 09:38 PM #1
- Join Date
- Aug 2008
- Thanked 0 Times in 0 Posts
Sending mail with VBSCRIPT problem
i'm using this script to automatically send a mail
Sub SendMailOutlook(aTo, Subject, TextBody, aFrom)
Dim Outlook 'As New Outlook.Application
Set Outlook = CreateObject("Outlook.Application")
Dim Message 'As Outlook.MailItem
Set Message = Outlook.CreateItem(olMailItem)
.Subject = Subject
.HTMLBody = TextBody
Const olOriginator = 0
i'm using the Active directory to send mail, the problem is when i enter a name to the Sub, if the name (such as John) is common and has more then one match. the Sub breaks...
is there anyway to tell Outlook to open the name check (Ctrl + K) function?
thank in advance...