Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 23rd, 2005, 03:44 AM
Registered User
 
Join Date: Jan 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default sending mail to an outlook group via vbs

i have been able to send an email via vbs and i now want to send it to several people at once..but instead of adding all their names to my script, i tried sending it to a group i had created in outllook hich contained their email addresses.
mymails were not delivered.
how can i achieve this please?.
for example i have a group called #myfriends@mycompany.com which contains about 30 email addressses.
i expect that if i send an email to that address, it should be send to all 30 people.
thanks

Reply With Quote
  #2 (permalink)  
Old April 26th, 2005, 06:42 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am not sure how to do this in Outlook, but you can create a table with email addresses in your database, and then assign the email addresses to various groups. Then when you send email, query the table for people in that group, and attach them to the To: line using the proper syntax.

You can write a script that gets all your email addresses from Outlook and populates the table. Hmmmm, if you can do that, you can do what you want to do originally.

Try Microsoft "Windows 2000 Scripting Guide," THE best book on Windows scripting ever. (Sorry Wrox)


mmcdonal
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
Sending mails through vbs file vc1 VBScript 1 February 2nd, 2005 02:45 AM
Sending e-mail to different mail box! Calibus Classic ASP Databases 4 September 3rd, 2004 05:48 PM
Sending an email without Outlook SaharaWizard Pro VB 6 3 August 12th, 2004 04:15 PM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.