Mike showed how to add recipients to an outlook contact group (actually item type 10 doesn't work for me, I find 7 is a distribution list).
It's unclear how many recipients your ISP allows, a distribution list in the end also is turned into recipients. I've seen different limits when I just wrote mailings for a sports club. It's been a while.
If all the recipients don't know each other and if you don't want to get classified (even just when temporary) as spammer, you would need to conform to certain rules, of which one would be to send a mail per client, even if you don't individualize the mail text.
I did use BCC and used noreply@domain.com as main normal recipient, but that's recognized by every recipient as the very weird situation of getting a mail from an account to itself.
Today I'd always rather use a provider for campaigns or newsletter service than rolling your own. There's a lot more technical business to do with SPF header and many more things I don't even would like to know about, but perhaps that IS your thing.
I would add a few thoughts on how to create groups on your own in data. Well, first of all, you can stay with distribution lists in outlook and then just have that list name as one recipient, but that's very specific to Outlook. It's not hard to design a little database of mail groups with two tables.
[pre]
Groups
id, groupname
GroupMembers
id, groupid, mail, other data (perhaps even userid)[/pre]
And then get the list of recipients by querying
Code:
Lparameters tcGroupname
Select * from groups g left join groupmembers gm on gm.group.id = g.id Where groupname=tcGroupname Into Cursor crsRecipients
loMailItem=.null.
Scan
If Isnull(loMailitem)
loMailitem = this.createmailbody(tcGroupname)
Endif
loMailItem.Recipients.Add(mail)
if recno()%50=0
loMailItem.Send()
loMailItem = .NULL.
Endif
Endscan
If !Isnull(loMailitem)
loMailitem.Send()
Endif
With createmailbody being a separate method of that class to create such a mail item without recipients, could also be a PRG or function. Making tcGroupname a parameter of that too is just a suggestion, I'd perhaps have mail templates named like the group of recipients for them and as suggested above GroupMembers could really just link Groups and Users so a user can subscribe to multiple mailings.
Bye, Olaf.
Olaf Doschke Software Engineering