Results 1 to 7 of 7

Thread: $Target_Email for Two, not working right

  1. #1
    Join Date
    May 2008
    Posts
    5

    Default $Target_Email for Two, not working right

    What am I doing wrong here? When someone submits a form, I'm requesting for it to go to two email addresses. However, it only goes to the 2nd one listed. What am I doing wrong?


    $TARGET_EMAIL = array(
    "^john@classof64\.net$",
    "^tom@flj\.net$");


    Also, in the htm file, I did add these two lines:

    <input type="hidden" name="recipients" value="johnRHC7Aclassof64.net" />
    <input type="hidden" name="recipients" value="tomRHC7Aflj.net" />

    Thanks.

  2. #2
    Join Date
    May 2008
    Location
    Reading
    Posts
    11

    Default Re: $Target_Email for Two, not working right

    Hi Moonshiner

    I'm no expert on this, but try changing the two lines into one as in
    <input type="hidden" name="recipients" value="johnRHC7Aclassof64.net, tomRHC7Aflj.net" />

    See also http://www.tectite.com/fmdoc/creating_forms.php

  3. #3
    Join Date
    May 2008
    Posts
    5

    Default Re: $Target_Email for Two, not working right

    Thanks for the reply. It was in one line before and I tried it again and the one email just will not go out. It must be my web host somehow not allowing that to happen. I changed the email addresses to two that my web host has for me and still the same, only one is sent out.

    You do have to add these two email addresses in the HTM file too, don't you? I'm using the AT_MANGLE settings for both.

    Could my web host be stopping the mailing of two receipents?

  4. #4
    Join Date
    May 2008
    Location
    Reading
    Posts
    11

    Default Re: $Target_Email for Two, not working right

    You ONLY add this line to your html form and definitely not to the php file.
    You should have the line
    <input type="hidden" name="recipients" value="johnRHC7Aclassof64.net, tomRHC7Aflj.net" />
    and no other input lines with a name of "recipients"

    In the formmail.php file you have to ensure the TARGET_EMAIL field includes these addresses (without the RHC7A mangle) see http://www.tectite.com/fmdoc/target_email.php
    If you have put the input etc. line above to your formmail.php file then take it out

  5. #5
    Join Date
    May 2008
    Posts
    5

    Default Re: $Target_Email for Two, not working right

    Sorry for the poor explanation.

    As stated in the orginal message I have only one input line in the PHP
    file and I have two lines that shows the AT_Mangle in the HTM file.

    Does the AT_Mangle file have anything to do with the receiptents listed in the PHP file?

    Again, this is the PHP file line now:
    $TARGET_EMAIL = array(^john@classof64\.net$,^tom@flj\.net$");

    And these TWO lines are in the HTM file:
    <input type="hidden" name="recipients" value="johnRHC7Aclassof64.net" />
    <input type="hidden" name="recipients" value="tomRHC7Aflj.net" />

  6. #6
    Join Date
    May 2008
    Location
    Reading
    Posts
    11

    Default Re: $Target_Email for Two, not working right

    There should be no input line in the php file and there should be no recipients line in there either

    Try doing it one step at a time. If you're confused by AT_MANGLE take it out, get it working without it then do it after you know the form is working

    In the php file the TARGET_EMAIL line looks right (I take it you have checked against the link I gave you). TARGET_EMAIL defines who the script can send any emails to

    In the html file there CANNOT be two identically named input lines so you need to make it into one as per my original reply.
    The input name=recipients line tells the form who to send the results of the form to. They have to be in the TARGET_EMAIL field (within the PHP file), but you dont have to send to both.

    Try it just with one address if that works, then try substituting that with the other one.
    Then try with the two combined
    <input type="hidden" name="recipients" value="johnRHC7Aclassof64.net, tomRHC7Aflj.net" />

  7. #7
    Join Date
    May 2008
    Posts
    5

    Default Re: $Target_Email for Two, not working right

    GOT IT WORKING!

    Everything was set up okay, except for the $TARGET_EMAIL = array (EMAIL_NAME:

    I didn't set up any of that before. Here is an example of of what
    I didn't have in there.

    $TARGET_EMAIL = array(EMAIL_NAME."@appliedhydrogentechnologies\.com$",
    EMAIL_NAME."@aol\.com$",
    EMAIL_NAME."@ghs64\.net",
    EMAIL_NAME."@n9gqr\.com",
    "^harry@ghs64\.net$",
    "^john@n9gqr\.com$",
    "^tom@aol\.com$",
    "^ken@aol\.com$");

    It's all new to me and I appreciate your time and help! Thank You!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. TARGET_EMAIL config question
    By beesman in forum Community Support
    Replies: 0
    Last Post: 17-Oct-2006, 07:48 PM
  2. Max size of Target_Email array ...
    By rogerfsmith in forum Community Support
    Replies: 1
    Last Post: 25-Sep-2006, 04:26 AM
  3. limit on how many recipients can be listed in TARGET_EMAIL array?
    By nurblet in forum FormMail Subscription Support
    Replies: 8
    Last Post: 02-Aug-2005, 12:47 AM
  4. TARGET_EMAIL pattern error [M78]
    By marcquey in forum FormMail Subscription Support
    Replies: 4
    Last Post: 10-Jul-2005, 06:32 AM
  5. TARGET_EMAIL question
    By middleburyman in forum FormMail Subscription Support
    Replies: 1
    Last Post: 03-Sep-2004, 08:30 PM

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
  •