Gossamer Forum
Home : General : Perl Programming :

Using refers for email addresses

Quote Reply
Using refers for email addresses
I am trying to modify formmail.pl into a multiple submission script. ie...customer fills in the form and hits submit. It will then send said email message to all the addresses in a given file.

Any tips/hints/help?

Thanks

CDitty
Quote Reply
Re: Using refers for email addresses In reply to
If I chose to use this:
print MAIL "To: $some_variable\n";

Do I put this for the list variable?

@some_variable = "path";

Then when $some_variable is called, it will scroll through the rest?

Thanks
Quote Reply
Re: Using refers for email addresses In reply to
Could do a couple of things, look for the line similiar to:

print MAIL "To: $some_variable\n";

and replace it with:

print MAIL "To: user1\@server.com, user2\@server2.com, user3\@server3.com\n";

You could also just add in a line after the above:

print MAIL "CC: somebody\@server.com\n";

to have the message cc'd..

Hope this helps,

Alex