Hello,

I'm a James newbie and was unable to find an answer to my question in the doc. So here goes:

I have an events system where whenever a specific event is created, a corresponding mailing list is also "created." For example, if an event with an ID of 1234 is created, whenever a user signs up for that event in my system, an entry is made in the mail.lists table as follows:

listName                           listSubscriber
event-1234                       [EMAIL PROTECTED]

I want to then be able to send an email to [EMAIL PROTECTED] and it be delivered to all the users who have signed up for the event. I already wrote a custom Matcher that matches any address of the form "[EMAIL PROTECTED]". The problem comes when I need to provide the user repository to the mailet. Basically, I do NOT want to have to explicitly configure a user repository in config.xml for every event that gets created. I somehow need to create the user repository "on the fly," using the event ID in the list address.

The only thing I could think of to solve this problem was to access mail.lists directly in my mailet. So, I was wondering if anyone had any examples of direct database access inside of a mailet, specifically with the lists table.

Thanks for your help,
Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to