Forums

Email Address with PERL Script

wolfcreek 04 Aug, 2008
I'm trying to use Matt's Script for Form Mail submitting the form to the PERL script in the CGI BIN, but the problem is that it won't pass along the "Recipient" to the script. Can you point me to the right way to accomplish this?

<FORM style="text-align:left; background-image:url('images/ball_duo.jpg'); margin-top:10; margin-right:0; margin-bottom:10; margin-left:0; border-width:1%; border-color:rgb(102,102,102); border-style:groove;" enctype="" name="registration" target="_self">
              <div style="padding:35px"><b><font color="black">Your User Name:*     </font></b><font color="black">
              <INPUT TYPE="TEXT" NAME="username" SIZE="36" MAXLENGTH=50 style="border-width:1; border-color:rgb(153,153,153)">	
              <br>
              <br>
              </font>              <b><u><font color="black">FIRST</font></u> <font color="black">Name:*</font></b>        <font color="black">
              <INPUT TYPE="TEXT" NAME="firstname" SIZE=35 MAXLENGTH=50 style="border-width:1; border-color:rgb(153,153,153)">
              <br>
              </font><br>              
              <b><u><font color="black">LAST</font></u> <font color="black">Name:* </font></b>       <font color="black">
              <INPUT TYPE="TEXT" NAME="lastname" SIZE=35 MAXLENGTH=50 style="border-width:1; border-color:rgb(153,153,153)">
                <br>
              </font><br>              
              <b><font color="black">Your Postal Code:*   </font></b><font color="black">
              <INPUT TYPE="TEXT" NAME="postalcode" SIZE="15" MAXLENGTH="15" style="border-width:1; border-color:rgb(153,153,153)">
                <br>
              </font><br>              
              <b><font color="black">E-Mail Address:*    </font></b> <font color="black">
              <INPUT TYPE="TEXT" NAME="emailaddress_1" SIZE=35 MAXLENGTH=75 style="border-width:1; border-color:rgb(153,153,153)">
                <br>
              </font><br>              
              <b><font color="black">Re-enter E-mail:*    </font></b><font color="black">
              <INPUT TYPE="TEXT" NAME="emailaddress_2" SIZE=35 MAXLENGTH=75 style="border-width:1; border-color:rgb(153,153,153)">
              </font><br>
                <br>              
              <b><font color="black">Franchise Name:*     </font></b><font color="black">
              <INPUT TYPE="TEXT" NAME="franchisename" SIZE=21 MAXLENGTH=21 style="border-width:1; border-color:rgb(153,153,153)">
              <br>
              </font><i><font color="#990000">Please do not use a current MLB franchise name.</font></i><br>
                <br>              
              <b><font color="black">Desired League:* </font></b>
              <select name="selectleague" size="1" onChange="(this, 'self')" style="border-width:1;border-color:rgb(153,153,153)">
                <option>Select a League</option>
                <option>Campbell (check for openings)</option>
                <option>Cooperstown (check for openings)</option>
                <option>Doubleday (check for openings)</option>
                <option>Arizona (check for openings)</option>
                <option>Clemente (check for openings)</option>
                <option>Ashburn (check for openings)</option>
                <option>Aaron (check for openings)</option>
                <option>Johnson (check for openings)</option>
                <option>Great Lakes (check for openings)</option>
                <option>California (check for openings)</option>
                <option>Willie Mays (check for openings)</option>
                <option>Rose (check for openings)</option>
                <option>Jackie Robinson (check for openings)</option>
                <option>Choose a league for me</option>
                </select>             
              <div><i><font color="#990000">Verify openings below.</font></i></div></div>
              <div style="text-align:center;padding:35px">              
                <font color="black">If you have researched available teams and have something particular in mind, please indicate it below.</font>                <br>
                <br>              
                
              <INPUT TYPE="TEXT" NAME="notation" SIZE="100" MAXLENGTH=200 style="border-width:1; border-color:rgb(153,153,153); border-style:dotted;">
              <br>
              </div>                
              <div style="padding:35px"><b> <font color="black">When all fields are correct.... 
              <INPUT TYPE="submit" VALUE="Submit" style="border-width:1; border-color:rgb(85,63,0); border-style:solid;"> 
              Otherwise.... 
              <input type="reset" value="Clear Form" style="border-width:1; border-color:rgb(85,63,0); border-style:solid;">
              </font></b></div>
               
<INPUT TYPE="HIDDEN" NAME="required"     VALUE="username,lastname,firstname,postalcode,emailaddress_1,emailaddress_2,franchisename,selectleague">
<INPUT TYPE="HIDDEN" NAME="data_order"    VALUE="username,lastname,firstname,postalcode,emailaddress_1,emailaddress_2,franchisename,selectleague,notation">
<INPUT TYPE="HIDDEN" NAME="recipient" VALUE="craigslane@HISEMAIL.net">
              <INPUT TYPE="HIDDEN" NAME="automessage" VALUE="mymessage">
              <INPUT TYPE="HIDDEN" NAME="outputfile" VALUE="form1">
              <INPUT TYPE="HIDDEN" NAME="countfile" VALUE="form1">
              <INPUT TYPE="HIDDEN" NAME="emailfile" VALUE="form1">
              <INPUT TYPE="HIDDEN" NAME="form_id" VALUE="Team Registration">
</FORM>


It responds with the following:

Error: No Recipient
There was no recipient address specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in either @recipient_addresses or in @recipient_domains.



I've checked the script and all applicable matters are in place. I'm just not sure how best to proceed.
GreyHead 04 Aug, 2008
Hi wolfcreek,

It's a few years since I used FormMail but if my memory is correct you set the recipient in the script configuration.

But why would you use FormMail when ChronoForms/Joomla has a perfectly good mailer built in? Just put the email address in the Email box on the Gneral tab.

Bob
wolfcreek 04 Aug, 2008
I tried, but for whatever reason, it only sends the following to the recipient:

<div class="form_item">
<div class="form_element cf_dropdown"><label class="cf_label">Select A League</label><span>{select_2}</span><a class="tooltiplink" onclick="return false;"><img class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png" border="0" width="16" height="16" /></a></div>
</div>
<div class="form_item">
<div class="form_element cf_textarea"><label class="cf_label">Franchise Name</label><span>{text_3}</span><a class="tooltiplink" onclick="return false;"><img class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png" border="0" width="16" height="16" /></a></div>
</div>



He doesn't receive anything but this and needs the values, not the variables. Am I missing something? I've tried making sure all the email fields are filled out, but I've apparently been doing something wrong, or have a bad installation.

Wolf
Max_admin 04 Aug, 2008
Hi wolf,

at the form edit page, turn DEBUG on, what do you get after submit ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
wolfcreek 05 Aug, 2008
I didn't get a thing...but after I figured out to apply the email settings, it worked like a charm. Thanks guys.

Wolf.
Max_admin 05 Aug, 2008
Hi Wolf,

What are the email settings you changed, can you give more details for other users please ?🙂

Thanks!

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.