From: Jonathan Stowe <gellyfish@ge...> - 2002-06-30 12:05:17
On Sun, 30 Jun 2002, Roger Hanlon wrote:
> I'd be keen on having multiple recipients (ie. more than just the first
> listed) in the "@allow_mail_to" configuration variable of FormMail. Is
> this possible?
Yeah you can do this. Probably the best thing to do is to add all of the
addresses to @allow_mail_to then make a recipient_alias that is the comma
separated list of your intended recipients, then add a hidden 'recipient'
field to your form which references the alias e.g.:
In your formmail.pl:
@allow_mail_to = qw(foo@... bar@... zub@...);
%recipient_alias = ( my_recips => 'foo@...,bar@...,zub@...');
In the form:
<input type="hidden" name="recipient" value="my_recips" />
Actually looking at the code you might not even need to put the list of
recipients in @allow_mail_to as the code adds it for you from the values
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
Get latest updates about Open Source Projects, Conferences and News.