Results 1 to 2 of 2

Thread: Sending Multiple Emails

  1. #1
    Join Date
    Dec 2004

    Sending Multiple Emails

    Forgive for also posting this message in the Perl forum but I am not sure where my proble lies.

    I am having a problem in sending multiple emails. I am using the formmail.pl from scriptarchive.com. For some reason it is only sending to the first recipient in the form hidden control 'recipient'.

    Here is the code in the form
    <td><input type='hidden' name="recipient" value="johnpn@hotmail.com, abolla@lycos.co.uk, johnpn@nor-tech.co.uk"/></td>

    Here is a relevent snippet from the formmail.pl
    @referers = ('outpost57.com', 'hotmail.com', 'nor-tech.co.uk', 'lycos.co.uk');

    # @recipients defines the e-mail addresses or domain names that e-mail can #
    # be sent to. This must be filled in correctly to prevent SPAM and allow #
    # valid addresses to receive e-mail. Read the documentation to find out how #
    # this variable works!!! It is EXTREMELY IMPORTANT. #
    @recipients = &fill_recipients(@referers, '^abolla\@lycos\.co\.uk', '^johnnoble202\@hotmail\.com', '^john\@nor-tech\.co\.uk');

    Can anyone see what the problem might be?


  2. #2
    Join Date
    Jul 2003
    The City of Roses
    @recipients = (&fill_recipients(@referers), '^abolla\@lycos\.co\.uk', '^johnnoble202\@hotmail\.com', '^john\@nor-tech\.co\.uk');
    Though you should not be using this script anyway. See the sticky Finding CGI Scripts.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles