Lunarpages Web Hosting Forum

Scripting Languages Hosting Help => C++ / PERL / CGI Support => Topic started by: cindyono on June 20, 2005, 09:02:45 AM

Title: NMS Formmail - multiple recipients
Post by: cindyono on June 20, 2005, 09:02:45 AM
I am using NMS Formmail. How can I have the form sent to more then one address. Because, as suggested, I do not use the  

<input type="hidden" name="recipient"                                 value="you@your.domain"

The script defaults to the first address listed in the @allow_mail_to statement in the script.

I would like the form to automatically be sent to 2 email addresses. Any suggestions?

TIA

Cindy
Title: NMS Formmail - multiple recipients
Post by: Ed on June 20, 2005, 09:43:59 AM
In the to variable in the script itself you should be able to specify multiple addresses seperated by a comma.

"user@domain.com,user2@asd.com"

- Ed
Title: NMS Formmail - multiple recipients
Post by: leighsww on June 20, 2005, 10:12:41 AM
Unfortunately, stringing the emails in the script as Ed shows for the @allow_mail_to doesn't seem to work.

You can send to multiple email addy's via a forwarder or by the %recipient_alias tag.

Read this following thread for instructions using the latter method:

http://www.lunarforums.com/forum/index.php?topic=26377.msg208553#msg208553
Title: NMS Formmail - multiple recipients
Post by: Ed on June 20, 2005, 10:16:14 AM
Thanks Leighsww :)