SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Specifying recipients of a forms contents

    Anyone know the format for sending the forms contents
    to 3 separate email address's, including to the email
    address for the person whose completed the form please
    ?

    At the moment, I have this in the code for the form:

    <INPUT TYPE="hidden" NAME="recipient"
    VALUE="form@examplewebsite.com">

    Any help appreciated.

    Dez.

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That would depend on which form mail script you are using.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many thanks for coming in on this - hopefully, this can be solved.

    For the moment, I would be happy if the forms contents can just go to the 2 email address's below really - at the moment, the forms contents are only going to the 2nd address, but not to the 1st one ? ?

    In the html on the forms page :

    <INPUT TYPE="hidden" NAME="recipient" VALUE="form@examplewebsite.com,info@anotherexamplewebsite.com">


    In the FormMail.pl file, the relevant section says this :

    @allow_mail_to = qw(form@examplewebsite.com, info@anotherexamplewebsite.com localhost);


    Any help much appreciated.

    Dez.

  4. #4
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    I think I've included enough info above, but if not, please let me know.

    Any help much appreciated.

    Dez.

  5. #5
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suspect there might be more than one script whose file name is "FormMail.pl".

    Is this the one you're using? If so, then the answer to your question is here.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  6. #6
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Sorry, I wasn't sure where to look for the version.

    I found this text below in the FormMail.pl file - is this what you were asking about ?

    Any help appreciated.

    Dez.

    #!/usr/bin/perl -wT
    #
    # NMS FormMail Version 3.14c1
    #

  7. #7
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah. You're using the first one listed on this page.

    The answer is the same -- the recipients field is a comma separated list. You would need to modify the script to send the email to the address supplied by the user.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  8. #8
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Many thanks for the link, useful reference for this stuff.

    In post 3 above, they are separated by commas - so surely they should work shouldn't they ?

    Any help appreciated.

    Dez.

  9. #9
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, this should work.
    Code:
    <INPUT TYPE="hidden" NAME="recipient" VALUE="form@examplewebsite.com,info@anotherexamplewebsite.com">
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


Bookmarks

Posting Permissions

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