PDA

View Full Version : Email to a Distribution Group



markstaylor
08-11-2009, 11:03 AM
Can you send an email to a distribution group if you have one in Outlook already setup? Or do I need to specify each email receipient seperately?

Dave Wilson
08-26-2009, 09:16 AM
Maybe I'm missing the point, but can't you just e-mail to the group name?
for example if group1@company.com contains 5 members, send the e-mail to that address.

here is code that I'm using to create e-mail to defined groups
e_mail = "group1@company.com"
I'm creating a file on the users desktop called email.lua

TextFile.WriteFromString(_DesktopFolder .."\\email.lua","File.OpenEmail(\"",false);
TextFile.WriteFromString(_DesktopFolder .."\\email.lua",e_mail,true);
When complete this sends the e-mail

Application.RunScriptFile(_DesktopFolder.. "\\email.lua");
hope this helps

markstaylor
08-31-2009, 08:50 PM
Thanks for the reply. I was asking about a distribution group. A list of emails in a group. They may have different domains.

Dave Wilson
09-01-2009, 07:18 AM
Can you create a group to use for the e-mail? Maybe I don't understand what you are trying to do. I use groups that are maintained as a specific entity, which can be changed with new members and old ones removed. Years later the same group can have an e-mail send to it and the correct people recieve a copy. All of the e-mail group names that I have seen can contain any valid address, even if they are not is the same domain.
Someone would have to maintian the group after it is created for your use, or if you can use an existing group even better.
Let me know if I'm not following what you are trying to do.