Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formmail from sourceforge.net

Status
Not open for further replies.

kelly5518

Technical User
Aug 1, 2005
72
US
Hi,

I've been using the formmail script from sourceforge.net that is a rewrite of Matt's FormMail.pl, and has better security as well as new features. This script has worked great for me except now I'm trying to add additional recipients and can't seem to get it to work. It only mails the results to the last recipient. Note: I'm using the recipient alias, but even when I tried it without the alias it only mailed the results to the last person listed.

Has anyone had any luck doing this?

Thanks,
 
Can you show the relevant code? It sounds like you're overwriting each recipient with another one, rather than adding it to the list.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Well, in the form I'm using:

Code:
<input type="hidden" name="recipient" value="1,2">

... and in the script I'm using:

Code:
%recipient_alias   = ('1' => 'firstemail@mydomain.com',
                        '2' => 'secondemail@mydomain.com');

Thanks for any suggestions.
 
Try the Perl forum - this is not really an HTML question. If debugging the Perl shows that it is only being passed 1 email address, then I'd come back here.

Hope this helps,
Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top