Forum OpenACS Development: Re: More then 1 email per user

Collapse
Posted by Malte Sussdorff on
No, but it should be easy.

If you use contacts (which you probably should) you can create multiple E-Mail Addresses per person. Then you write two custom callbacks, one for acs_mail_lite::send and one for acs_mail_lite::complex_send which look up the other e-mails from the contacts system, and then send it with complex_send, single_email_p, no_callback_p. This way the user get's one e-mail with the notification to the "primary" e-mail address and a second e-mail with multiple recipients to his other e-mails.

Alternatively you could add a pre send callback to both e-mail functions which get the "secondary" e-mail addresses and then call acs_mail_lite::complex_send -to_addr $primary_email -cc_addr $list_of_other_emails -no_callback -single_email.

Though the latter will not give you the advantage of having the e-mail in mail-tracking.