Cfform or cfmail troubles

I am lost, I am new to ColdFusion and am trying to create a "Contact Us" page. I have a form made up with all the fields that I need on the page. I want it to email the form to "[email protected]" upon hitting submit. However I am stuck and cannot get the form to work properly. Can somebody, anybody help
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main-2-col.dwt.cfm" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Contact </title>
<meta name="keywords" content="emergency management, consultants" />
<meta name="description" content="Consultants" />
<meta name="robots" content="index,follow" />
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link href="styles/styles-index.css" rel="stylesheet" type="text/css" />
<link href="styles/styles-index-col-table.css" rel="stylesheet" type="text/css" />
<link href="styles/styles-index-mobile.css" rel="stylesheet" media="handheld" type="text/css" />
<script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
<script type="text/javascript">
<!--
    function  _CF_checkCFForm_1(_CF_this)
        //reset on submit
        _CF_error_exists = false;
        _CF_error_messages = new Array();
        _CF_error_fields = new Object();
        _CF_FirstErrorField = null;
        //form element Name required check
        if( !_CF_hasValue(_CF_this['Name'], "TEXT", false ) )
            _CF_onError(_CF_this, "Name", _CF_this['Name'].value, "Please enter your name.");
            _CF_error_exists = true;
        //form element Phone required check
        if( !_CF_hasValue(_CF_this['Phone'], "TEXT", false ) )
            _CF_onError(_CF_this, "Phone", _CF_this['Phone'].value, "Please enter your phone number.");
            _CF_error_exists = true;
        //form element Email required check
        if( !_CF_hasValue(_CF_this['Email'], "TEXT", false ) )
            _CF_onError(_CF_this, "Email", _CF_this['Email'].value, "Please enter your email.");
            _CF_error_exists = true;
        //form element Answer required check
        if( _CF_hasValue(_CF_this['Answer'], "TEXT", false ) )
            //form element Answer 'INTEGER' validation checks
            if (!_CF_checkinteger(_CF_this['Answer'].value, true))
                _CF_onError(_CF_this, "Answer", _CF_this['Answer'].value, "Please enter the answer.");
                _CF_error_exists = true;
        }else {
            _CF_onError(_CF_this, "Answer", _CF_this['Answer'].value, "Please enter the answer.");
            _CF_error_exists = true;
        //display error messages and return success
        if( _CF_error_exists )
            if( _CF_error_messages.length > 0 )
                // show alert() message
                _CF_onErrorAlert(_CF_error_messages);
                // set focus to first form error, if the field supports js focus().
                if( _CF_this[_CF_FirstErrorField].type == "text" )
                { _CF_this[_CF_FirstErrorField].focus(); }
            return false;
        }else {
            return true;
//-->
</script>
</head>
<body>
<!--- define the action page in the form tag. The form variables will
    pass to this page when the form is submitted --->
<a name="Top" id="Top"></a>
<div id="masthead"></div>
<div id="topnav">  <ul>
   <li><a href="index.cfm">Home</a></li>
  <li><a href="philosophy-mission.cfm">PHILOSOPHY & MISSION</a></li>
  <li><a href="services.cfm">SERVICES</a></li>
  <li><a href="contact.cfm">CONTACT</a></li>
  <li><a href="about-us.cfm">ABOUT US</a> </li>
  <li><a href="index.cfm">HOME</a></li
  </ul>
</div>
<div id="contentouter">
<div id="content"><!-- InstanceBeginEditable name="body" -->
  <div id="middlecontent">
    <h1>Contact Us</h1>
    <p>Phone: ###-###-####</p>
    <p>Postal:  </p>
    <hr />
    <h2>Information Request Form </h2>
        <div id="form">
                                <table width="90%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <p align="center">Please complete the fields below and we will respond to your inquiry within 48 hours.</p>
                                        </td>
                                    </tr>
                                </table>
                                <p></p>
                                <table width="90%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <p align="right">First Name:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="First Name" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Last Name:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="Last Name" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Address Street 1:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="Address Street 1" size="30" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Address Street 2:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="Address Street 2" size="30" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">City:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="City" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Zip Code:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="Zip Code" size="5" maxlength="5" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">State:</p>
                                        </td>
                                        <td>
                                            <p><select name="State">
                                                    <option value="AL">AL</option>
                                                    <option value="AK">AK</option>
                                                    <option value="AZ">AZ</option>
                                                    <option value="AR">AR</option>
                                                    <option value="CA">CA</option>
                                                    <option value="CO">CO</option>
                                                    <option value="CT">CT</option>
                                                    <option value="DE">DE</option>
                                                    <option value="DC">DC</option>
                                                    <option value="FL">FL</option>
                                                    <option value="GA">GA</option>
                                                    <option value="HI">HI</option>
                                                    <option value="ID">ID</option>
                                                    <option value="IL">IL</option>
                                                    <option value="IN">IN</option>
                                                    <option value="IA">IA</option>
                                                    <option value="KS">KS</option>
                                                    <option value="KY">KY</option>
                                                    <option value="LA">LA</option>
                                                    <option value="ME">ME</option>
                                                    <option value="MD">MD</option>
                                                    <option value="MA">MA</option>
                                                    <option value="MI">MI</option>
                                                    <option value="MN">MN</option>
                                                    <option value="MS">MS</option>
                                                    <option value="MO">MO</option>
                                                    <option value="MT">MT</option>
                                                    <option value="NE">NE</option>
                                                    <option value="NV">NV</option>
                                                    <option value="NH">NH</option>
                                                    <option value="NJ">NJ</option>
                                                    <option value="NM">NM</option>
                                                    <option value="NY">NY</option>
                                                    <option value="NC">NC</option>
                                                    <option value="ND">ND</option>
                                                    <option value="OH">OH</option>
                                                    <option value="OK">OK</option>
                                                    <option value="OR">OR</option>
                                                    <option value="PA">PA</option>
                                                    <option value="RI">RI</option>
                                                    <option value="SC">SC</option>
                                                    <option value="SD">SD</option>
                                                    <option value="TN">TN</option>
                                                    <option value="TX">TX</option>
                                                    <option value="UT">UT</option>
                                                    <option value="VT">VT</option>
                                                    <option value="VA">VA</option>
                                                    <option value="WA">WA</option>
                                                    <option value="WV">WV</option>
                                                    <option value="WI">WI</option>
                                                    <option value="WY">WY</option>
                                                </select></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Daytime Phone:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="Daytime Phone" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Evening Phone:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="Evening Phone" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Email:</p>
                                        </td>
                                        <td>
                                            <p><input type="text" name="Email" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Comments:</p>
                                        </td>
                                        <td>
                                            <p><textarea name="Comments" cols="38"></textarea></p>
                                        </td>
                                    </tr>
                                </table>
                                <p><!--  submit button --><input type="submit" name="SubmitForm" value="Submit">
                                    <!-- reset button --> <input type="reset" name="ResetForm" value="Clear Form"></p>
                            </div>
  </div>
  <div id="rightcontent">
    <h2>Located where you and your business are.</h2>
    <p>Upon setting up a seminar date we will travel to your location. </p>
  </div></form>
<!-- InstanceEndEditable --></div>
<div id="contentpush"></div>
</div>
<div id="footer">
  <p><a href="#Top">Return to Top</a></p>
  <p><a href="index.cfm">Home</a> | <a href="philosophy-mission.cfm">Philosophy &amp; Mission</a> |
    <a href="services.cfm">Services</a> | <a href="contact.cfm">Contact</a> | <a href="about-us.cfm">About Us</a> | <a href="index.cfm">Home</a></p>
</div>
</body>
</html>

1) The Javascript tags suggest you want automatic validation for the form fields. The proper tag for this is <cfform>. Simply add the attributes 'required' to the input fields. Coldfusion would then automatically generate the Javascript for you.
2) You should surround a comment in Coldfusion like this <!--- comment --->, not like this <!-- comment -->.
3) Remove any redundant information.
4) The cfmail tag will be in the action page which, in my example, is myActionPage.cfm.
<html>
<head>
<title>Contact </title>
<meta name="keywords" content="emergency management, consultants" />
<meta name="description" content="Consultants" />
<meta name="robots" content="index,follow" />
<link href="styles/styles-index.css" rel="stylesheet" type="text/css" />
<link href="styles/styles-index-col-table.css" rel="stylesheet" type="text/css" />
<link href="styles/styles-index-mobile.css" rel="stylesheet" media="handheld" type="text/css" /> 
</head>
<body>
<a name="Top" id="Top"></a>
<div id="masthead"></div>
<div id="topnav">  <ul>
   <li><a href="index.cfm">Home</a></li>
  <li><a href="philosophy-mission.cfm">PHILOSOPHY & MISSION</a></li>
  <li><a href="services.cfm">SERVICES</a></li>
  <li><a href="contact.cfm">CONTACT</a></li>
  <li><a href="about-us.cfm">ABOUT US</a> </li>
  <li><a href="index.cfm">HOME</a></li
  </ul>
</div>
<div id="contentouter">
<div id="content">
  <div id="middlecontent">
    <h1>Contact Us</h1>
    <p>Phone: ###-###-####</p>
    <p>Postal:  </p>
    <hr />
    <h2>Information Request Form </h2>
        <div id="form">
                                <table width="90%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <p align="center">Please complete the fields below and we will respond to your inquiry within 48 hours.</p>
                                        </td>
                                    </tr>
                                </table>
                                <!--- define the action page in the form tag. The form variables will
    pass to this page when the form is submitted --->
                                <cfform action="myActionPage.cfm" method="post">
                                <table width="90%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <p align="right">First Name:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="FirstName" required="yes" message="Please enter your first name." /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Last Name:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="LastName" required="yes" message="Please enter your last name." /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Address Street 1:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="Address_Street_1" size="30" required="yes" message="Please enter your addres." /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Address Street 2:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="Address_Street_2" size="30" required="yes" message="" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">City:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="City" required="yes" message="Please enter your city." /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Zip Code:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="ZipCode" size="5" maxlength="5" required="yes" message="Please enter your zip code." /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">State:</p>
                                        </td>
                                        <td>
                                            <p><cfselect name="State">
                                                    <option value="AL">AL</option>
                                                    <option value="AK">AK</option>
                                                    <option value="AZ">AZ</option>
                                                    <option value="AR">AR</option>
                                                    <option value="CA">CA</option>
                                                    <option value="CO">CO</option>
                                                    <option value="CT">CT</option>
                                                    <option value="DE">DE</option>
                                                    <option value="DC">DC</option>
                                                    <option value="FL">FL</option>
                                                    <option value="GA">GA</option>
                                                    <option value="HI">HI</option>
                                                    <option value="ID">ID</option>
                                                    <option value="IL">IL</option>
                                                    <option value="IN">IN</option>
                                                    <option value="IA">IA</option>
                                                    <option value="KS">KS</option>
                                                    <option value="KY">KY</option>
                                                    <option value="LA">LA</option>
                                                    <option value="ME">ME</option>
                                                    <option value="MD">MD</option>
                                                    <option value="MA">MA</option>
                                                    <option value="MI">MI</option>
                                                    <option value="MN">MN</option>
                                                    <option value="MS">MS</option>
                                                    <option value="MO">MO</option>
                                                    <option value="MT">MT</option>
                                                    <option value="NE">NE</option>
                                                    <option value="NV">NV</option>
                                                    <option value="NH">NH</option>
                                                    <option value="NJ">NJ</option>
                                                    <option value="NM">NM</option>
                                                    <option value="NY">NY</option>
                                                    <option value="NC">NC</option>
                                                    <option value="ND">ND</option>
                                                    <option value="OH">OH</option>
                                                    <option value="OK">OK</option>
                                                    <option value="OR">OR</option>
                                                    <option value="PA">PA</option>
                                                    <option value="RI">RI</option>
                                                    <option value="SC">SC</option>
                                                    <option value="SD">SD</option>
                                                    <option value="TN">TN</option>
                                                    <option value="TX">TX</option>
                                                    <option value="UT">UT</option>
                                                    <option value="VT">VT</option>
                                                    <option value="VA">VA</option>
                                                    <option value="WA">WA</option>
                                                    <option value="WV">WV</option>
                                                    <option value="WI">WI</option>
                                                    <option value="WY">WY</option>
                                                </cfselect></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Daytime Phone:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="Daytime_Phone" required="yes" message="Please enter your daytime phone number." /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Evening Phone:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="Evening_Phone" required="yes" message="" /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Email:</p>
                                        </td>
                                        <td>
                                            <p><cfinput type="text" name="Email" required="yes" message="Please enter your email address." /></p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <p align="right">Comments:</p>
                                        </td>
                                        <td>
                                            <p><cftextarea name="Comments" cols="38"></cftextarea></p>
                                        </td>
                                    </tr>
                                </table>
                                <p><!---  submit button ---><cfinput type="submit" name="SubmitForm" value="Submit">
                                    <!--- reset button ---> <cfinput type="reset" name="ResetForm" value="Clear Form"></p>
                            </div>
  </div>
  <div id="rightcontent">
    <h2>Located where you and your business are.</h2>
    <p>Upon setting up a seminar date we will travel to your location. </p>
  </div></cfform>
<!---InstanceEndEditable---></div>
<div id="contentpush"></div>
</div>
<div id="footer">
  <p><a href="#Top">Return to Top</a></p>
  <p><a href="index.cfm">Home</a> | <a href="philosophy-mission.cfm">Philosophy &amp; Mission</a> |
    <a href="services.cfm">Services</a> | <a href="contact.cfm">Contact</a> | <a href="about-us.cfm">About Us</a> | <a href="index.cfm">Home</a></p>
</div>
</body>
</html>

Similar Messages

  • Cfform and CFMail

    I have the code below on my page:
    <cfif isdefined('form.suggestion') OR
    isdefined('form.suggestion.X')>
    <!--- submit --->
    <!--- send email to ellison --->
    <cfmail server="#g_mailserver#" to="#suggestion_email#"
    from="#autogen_email#"
    subject = "Suggestion from Ellison.com">
    ** THIS MESSAGE WAS AUTOGENERATED, PLEASE DO NOT REPLY **
    #chr(10)# The following suggestion was submitted
    #dateformat(now(),"mm-dd-yy")# at #timeformat(now(),"hh:mm tt")#
    Pacific time.
    Name: #name#
    Email: #email#
    City & State: #location#
    Comment: #suggestion#
    </cfmail>
    <table>
    <TR>
    <TD class="BodyText1GreyD"><span
    class="BodyText1GreyDBOLD"><strong>Thank
    you.</strong> </span><BR> <BR>
    Your comments have been sent to the Ellison.com Web Team.
    <br>
    <br></TD>
    </TR>
    </table>
    <cfelse>
    <!--- form --->
    <cfoutput>
    <table width="550" border="0" cellspacing="6"
    cellpadding="0">
    <tr>
    <td align="center" valign="middle">
    <table width="500">
    <form method="post"
    action="#serverpath#support/?p=suggestion">
    <tr>
    <td colspan="2">
    </td>
    </tr>
    <tr>
    <td width="150" align="right"
    class="BodyText1GreyD">Your Name: </td>
    <td class="BodyText1GreyD"><input type="text"
    name="name" style="width:200px" class="BodyText1GreyD" />
    (Optional)</td>
    </tr>
    <tr>
    <td width="150" align="right"
    class="BodyText1GreyD">Your Email Address: </td>
    <td class="BodyText1GreyD"><input type="text"
    name="email" style="width:200px" class="BodyText1GreyD" />
    (Optional)</td>
    </tr>
    <tr>
    <td width="150" align="right"
    class="BodyText1GreyD">City &amp; State: </td>
    <td class="BodyText1GreyD"><input type="text"
    name="location" style="width:200px" class="BodyText1GreyD" />
    (Optional)</td>
    </tr>
    <tr>
    <td width="150" align="right" valign="top"
    class="BodyText1GreyD">Your comments or suggestions: </td>
    <td><textarea name="suggestion" cols="55" rows="6"
    style="width:360px" class="BodyText1GreyD"></textarea>
    </td>
    </tr>
    <tr>
    <td colspan="2" align="right"
    class="BodyText1GreyD"><input type="image" name="submit"
    value="submit" src='images/submit.gif' width="101" height="24"
    alt='Submit Request' border="0"
    onmouseover="this.src='images/submit_r.gif';"
    onmouseout="this.src='images/submit.gif';" />
       </td>
    </tr>
    </form></table>
    </td>
    </tr>
    </table>
    As you can see the form sends the inf to itself
    (?p=suggestion) and the e-mail is sent (teorically).
    This is working fine on my both devservers but its not
    working on my prodserver.
    here is the error message on my prod server:
    The page cannot be displayed
    The page you are looking for cannot be displayed because the
    page address is incorrect.
    Please try the following:
    * If you typed the page address in the Address bar, check
    that it is entered correctly.
    * Open the stg.ellison.com home page and then look for links
    to the information you want.
    HTTP 405 - Resource not allowed
    Internet Information Services

    If the intent is to prevent multiple form submissions, there
    are a couple of other ways to do it. Neither is perfect, but both
    require a deliberate effort to submit the form more than once.
    1. Use an intermediate page. On this page, validate the form
    inputs, convert the form variables to session variables and
    javascript.window.location to the real page.
    2. At the top of the form action page, display some html
    content and cfflush it. Then process your form.

  • Trouble with CFMAIL

    I'm using CFMail on a Win2k server running IIS and having a
    wierd mail problem.
    I can send mail to certain email addresses, but not others.
    The ones that don't get mail
    are *definitely* valid emails, at places like gmail with no
    problems in the account.
    There's no clear logic to which emails do work and which
    don't, but the log shows this for
    the ones that don't send out
    "Error","scheduler-5","12/04/06","06:41:47",,"Invalid
    Addresses; nested exception is: class
    javax.mail.SendFailedException: 452 4.2.2 Mailbox full "
    "Error","scheduler-5","12/04/06","06:44:04",,"Invalid
    Addresses; nested exception is: class
    javax.mail.SendFailedException: 452 4.2.2 Mailbox full "
    What can I do to find more information out, are there are any
    articles/resources or anyone with war-scars that can help explain
    this one?
    Thanks much
    Paul Berry

    > Hi!
    >
    > I'm having trouble sending e-mail with cfmail to domains
    containing characters
    > like å ä ö. In mail.log I get the
    following message: "508 5.5.2 Illegal
    > character in address".
    >
    > Is this a bug or a setting somewhere in the
    Administrator?
    According to this:
    http://en.wikipedia.org/wiki/Domain_name_system#Internationalised_domain_names,
    it's legal to have those sort of characters in a domain name,
    but not a
    host name.
    But according to this:
    http://java.sun.com/products/javamail/javadocs/javax/mail/Address.html,
    it
    sticks to RFC 822 (
    http://www.ietf.org/rfc/rfc822.txt),
    which doesn't seem
    to differentiate between the host part and the domain part of
    an address,
    and only allows for ASCII 0-127 in the domain name.
    So the bottom line is those domain names - for the purposes
    of internet
    email addressing - aren't actually legal. So - strictly
    speaking - it's
    correct for CF to reject them.
    I would say you're screwed, unless you can find some
    alterative emailing
    system (not <cfmail>), and use that. But then again,
    the alternatives
    could quite possibly disallow those addresses too.
    Adam

  • Cfmail loops back to original form document yet not sending email.

    I had produced a form to be emailed. after one finishes the form and press submit it loops back top the form again, yet i do not get an email. Doen anyone know why this is happening? Below is the code for the original form and below that is code to my action page... Any suggestions would be welcomed..
    FORM ORIGINAL CODE
    <cfquery name="select_ministry" datasource="ministry9">
    SELECT ministry.ministry
    FROM ministry
    ORDER BY ministry.ministry
    </cfquery>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    @import url("CSS/event_Req_Label.css");
    -->
    </style>
    </head>
    <body>
    <!--- Begin ColdFusion Form --->
    <cfform name="Event_Request" action="EventRequestSend.cfm" method="post" >
    <strong>Event Contact</strong><br />
    <br />
      <span class="eventReq_label">First Name:</span>
                        <cfinput
                        type="text"
                        name="First_Name"
                        message="Please enter your First Name..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Last Name:</span>
                          <cfinput
                        type="text"
                        name="Last_Name"
                        message="Please enter your Last Name..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Phone:</span>
                          <cfinput
                        type="text"
                        name="Phone"
                        message="Please enter your Phone Number..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Email:</span>
                          <cfinput
                        type="text"
                        name="Email_Address"
                        message="Please enter your Email Address..."
                        required="yes" class="event_Request_Box"
                        size="30">
                        </span><br />
                          <br />
                        <br />
                          <strong>About Event/Program</strong><br />
                        <br />
                          <span class="eventReq_label">Event Title:</span>
                          <cfinput
                        type="text"
                        name="Event_Title"
                        message="Please enter the Name of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <br />
                          <span class="eventReq_label">Ministry: </span>
                               <select name="select_ministry" size="1" class="event_Request_Box">
                                 <cfoutput query="select_ministry">
                                   <option value= "#select_ministry.Ministry#" <cfif (isDefined("select_ministry.Ministry") AND select_ministry.Ministry EQ select_ministry.Ministry)>selected</cfif>>#select_ministry.Ministry#</option>
                                 </cfoutput>
                                 </select>
                               <br />
                          <span class="eventReq_label">Event Description:</span>
                          <cftextarea name="Event_Description" cols="40" rows="10" label="Event_Description" required="yes" class="event_Request_Box" id="Event_Description" message="Please Enter a description for the event." tooltip="Please Describe the event in 75 words or less." enabled="no" value="Event_Description" maxlenght="75"></cftextarea>
                          <br />
                          <span class="eventReq_label">Event Date:</span>
                          <cfinput
                        type="text"
                        name="Event_Date"
                        message="Please enter the Date of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Event Time:</span>
                          <cfinput
                        type="text"
                        name="Event_Time"
                        message="Please enter the Time of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Address:</span>
             <cfinput
                        type="text"
                        name="Event_address"
                        message="Please enter the Address of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                        <br />
                          <span class="eventReq_label">Address 2:</span>
                          <cfinput
                        type="text"
                        name="Event_address_2"
                        message="Please enter the Address of the Event..."
                        required="no" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">City:</span>
                          <cfinput
                        type="text"
                        name="Event_City"
                        message="Please enter the City of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">State:</span>
                          <cfinput
                        type="text"
                        name="Event_State"
                        message="Please enter the State of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Zipcode:</span>
                          <cfinput
                        type="text"
                        name="Event_Zip_code"
                        message="Please enter the Zip Code of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Admission Cost:</span>
                          <cfinput
                        type="text"
                        name="admission_Cost"
                        message="Please enter the cost of admission for the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                        <br />
                        <input type="submit" name="Submit" class="submit" value="Submit">
                        <br />
                        <br />
             <!--- End ColdFusion Form --->
                        </cfform>
    </body>
    </html>
    FORM ACTION PAGE CODE
    <!--- Add cfparams to prevent errors on the page --->
    <cfparam name="Event_Request.First_Name" default="">
    <cfparam name="Event_Request.Last_Name" default="">
    <cfparam name="Event_Request.Phone" default="">
    <cfparam name="Event_Request.Email_address" default="">
    <cfparam name="Event_Request.Event_title" default="">
    <cfparam name="Event_Request.select_ministry" default="">
    <cfparam name="Event_Request.Event_Description" default="">
    <cfparam name="Event_Request.Event_Date" default="">
    <cfparam name="Event_Request.Event_Time" default="">
    <cfparam name="Event_Request.Event_address" default="">
    <cfparam name="Event_Request.Event_address_2" default="">
    <cfparam name="Event_Request.Event_City" default="">
    <cfparam name="Event_Request.Event_State" default="">
    <cfparam name="Event_Request.Event_Zip_code" default="">
    <cfparam name="Event_Request.admission_Cost" default="">
    <!--- Create an empty error string --->
    <cfset strError = "">
    <!--- If the form is submitted --->
    <cfif isDefined("Event_Request.Submit")>
    <!--- If the First Name field is empty --->
        <cfif Len(Trim(Event_Request.First_Name)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter your First Name...<br>">
        </cfif>
    <!--- If the Last Name field is empty --->
        <cfif Len(Trim(Event_Request.Last_Name)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter your Last Name...<br>">
        </cfif>
        <!--- If the Phone field is empty --->
        <cfif Len(Trim(Event_Request.Phone)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter your Phone Number...<br>">
        </cfif>
        <!--- If the Email field is empty --->
        <cfif Len(Trim(Event_Request.Email_address)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter your Email Address...<br>">
        </cfif>
        <!--- If the Event_title field is empty --->
        <cfif Len(Trim(Event_Request.Event_title)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the Name of the Event...<br>">
        </cfif>
    <!--- If the select_ministry is empty --->
        <cfif Len(Trim(Event_Request.select_ministry)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please select the ministry...<br>">
        </cfif>
    <!--- If the Event_Description is empty --->
        <cfif Len(Trim(Event_Request.Event_Description)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "please include your description...<br>">
        </cfif>
    <!--- If the Event_Date is empty --->
        <cfif Len(Trim(Event_Request.Event_Date)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the date of your program...<br>">
        </cfif>
    <!--- If the Event_Time is empty --->
        <cfif Len(Trim(Event_Request.Event_Time)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the Time of your program...<br>">
        </cfif>
    <!--- If the Event_address is empty --->
        <cfif Len(Trim(Event_Request.Event_address)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the address of your program...<br>">
        </cfif>
    <!--- If the Event_City is empty --->
        <cfif Len(Trim(Event_Request.Event_City)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the city of your program...<br>">
        </cfif>
    <!--- If the Event_State is empty --->
        <cfif Len(Trim(Event_Request.Event_State)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the state of your program...<br>">
        </cfif>
    <!--- If the Event_Zip_code is empty --->
        <cfif Len(Trim(Event_Request.Event_Zip_code)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the zipcode of your program...<br>">
        </cfif>
    <!--- If the admission_Cost is empty --->
        <cfif Len(Trim(Event_Request.admission_Cost)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the Admission Cost of your program...<br>">
        </cfif>
    <!--- If the form was not submitted --->
    <cfelse>
        <!--- Send the user to the form page --->
        <cflocation addtoken="no" url="Event_Request.cfm">
    </cfif>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Response Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    @import url("CSS/event_Req_Label.css");
    -->
    </style>
    </head>
    <body>
    <!--- If the error string is still empty show the results --->
    <cfif strError EQ "">
        <p>Thank you for submitting the Event Request form.</p>
        <p>You submitted the following information:</p>
        <cfoutput>
            <p>    First Name:     #Trim(EVENT_REQUEST.First_Name)#<br><br>
                Last Name:     #Trim(EVENT_REQUEST.Last_Name)#<br><br>
                      Phone:         #Trim(EVENT_REQUEST.Phone)#<br><br>
                Email:         #Trim(EVENT_REQUEST.Email_Address)#<br><br><br><br>
                Event Title:     #Trim(EVENT_REQUEST.Event_Title)#<br><br>
                Ministry:     #Trim(EVENT_REQUEST.select_ministry)#<br><br>
                Description:     #Trim(EVENT_REQUEST.Event_Description)#<br><br>
                Event Date:     #Trim(EVENT_REQUEST.Event_Date)#<br><br>
                Event Time:     #Trim(EVENT_REQUEST.Event_Time)#<br><br>
                Event Address:     #Trim(EVENT_REQUEST.Event_address)#<br><br>
                Event Address 2:#Trim(EVENT_REQUEST.Event_address_2)#<br><br>
                Event City:     #Trim(EVENT_REQUEST.Event_City)#<br><br>
                Event State:     #Trim(EVENT_REQUEST.Event_State)#<br><br>
                Zip code:     #Trim(EVENT_REQUEST.Event_Zip_code)#<br><br>
          Admission_Cost:    #Trim(EVENT_REQUEST.admission_Cost)#<br><br></p>
        </cfoutput>
        <p>Someone will contact you if necessary. </p>
    <!--- Send the email --->
    <cfmail from="#EVENT_REQUEST.Email_Address#"         to="[email protected]"
            subject="You have mail from"
            replyto="#EVENT_REQUEST.Email_Address#"
            server="mail.thehansonco.com">
    You Have an inquiry from:     #Trim(EVENT_REQUEST.First_Name)#
                                #Trim(EVENT_REQUEST.Last_Name)#<br><br>
                          Phone:     #Trim(EVENT_REQUEST.Phone)#<br><br>
                        Email:     #Trim(EVENT_REQUEST.Email_Address)#<br><br><br><br>
                        Event Title:     #Trim(EVENT_REQUEST.Event_Title)#<br><br>
                        Ministry:         #Trim(EVENT_REQUEST.select_ministry)#<br><br>
                        Description:     #Trim(EVENT_REQUEST.Event_Description)#<br><br>
                        Event Date:     #Trim(EVENT_REQUEST.Event_Date)#<br><br>
                        Event Time:     #Trim(EVENT_REQUEST.Event_Time)#<br><br>
                        Event Address:     #Trim(EVENT_REQUEST.Event_address)#<br><br>
                        Event Address 2:#Trim(EVENT_REQUEST.Event_address_2)#<br><br>
                        Event City:     #Trim(EVENT_REQUEST.Event_City)#<br><br>
                        Event State:     #Trim(EVENT_REQUEST.Event_State)#<br><br>
                        Zip code:         #Trim(EVENT_REQUEST.Event_Zip_code)#<br><br>
                        Admission_Cost:    #Trim(EVENT_REQUEST.admission_Cost)#<br><br>
        </cfmail>
    <!--- If the error string is not empty show the form again --->
        <cfelse>
        <!--- Begin ColdFusion Form --->
    <cfform name="Event_Request"  action="EventRequestSend.cfm" method="post" >
    <strong>Event Contact</strong><br />
    <br />
    <!--- Add table row to show error message --->
                    <cfoutput>#strError#</cfoutput>
      <span class="eventReq_label">First Name:</span>
                        <cfinput
                        type="text"
                        name="First_Name"
                        message="Please enter your First Name..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Last Name:</span>
                          <cfinput
                        type="text"
                        name="Last_Name"
                        message="Please enter your Last Name..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Phone:</span>
                          <cfinput
                        type="text"
                        name="Phone"
                        message="Please enter your Phone Number..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Email:</span>
                          <cfinput
                        type="text"
                        name="Email_Address"
                        message="Please enter your Email Address..."
                        required="yes" class="event_Request_Box"
                        size="30">
                        </span><br />
                          <br />
                        <br />
                          <strong>About Event/Program</strong><br />
                        <br />
                          <span class="eventReq_label">Event Title:</span>
                          <cfinput
                        type="text"
                        name="Event_Title"
                        message="Please enter the Name of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <br />
                          <span class="eventReq_label">Ministry: </span>
                               <select name="select_ministry" size="1" class="event_Request_Box">
                                 <cfoutput query="select_ministry">
                                   <option value= "#select_ministry.Ministry#" <cfif (isDefined("select_ministry.Ministry") AND select_ministry.Ministry EQ select_ministry.Ministry)>selected</cfif>>#select_ministry.Ministry#</option>
                                 </cfoutput>
                                 </select>
                               <br />
                          <span class="eventReq_label">Event Description:</span>
                          <cftextarea name="Event_Description" cols="40" rows="10" label="Event_Description" required="yes" class="event_Request_Box" id="Event_Description" message="Please Enter a description for the event." tooltip="Please Describe the event in 75 words or less." enabled="no" value="Event_Description" maxlenght="75"></cftextarea>
                          <br />
                          <span class="eventReq_label">Event Date:</span>
                          <cfinput
                        type="text"
                        name="Event_Date"
                        message="Please enter the Date of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Event Time:</span>
                          <cfinput
                        type="text"
                        name="Event_Time"
                        message="Please enter the Time of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Address:</span>
             <cfinput
                        type="text"
                        name="Event_address"
                        message="Please enter the Address of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                        <br />
                          <span class="eventReq_label">Address 2:</span>
                          <cfinput
                        type="text"
                        name="Event_address_2"
                        message="Please enter the Address of the Event..."
                        required="no" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">City:</span>
                          <cfinput
                        type="text"
                        name="Event_City"
                        message="Please enter the City of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
      <span class="eventReq_label">State:</span>
      <cfinput
                        type="text"
                        name="Event_State"
                        message="Please enter the State of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
    <br />
                          <span class="eventReq_label">Zipcode:</span>
                          <cfinput
                        type="text"
                        name="Event_Zip_code"
                        message="Please enter the Zip Code of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Admission Cost:</span>
                          <cfinput
                        type="text"
                        name="admission_Cost"
                        message="Please enter the cost of admission for the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                        <br />
                        <input type="submit" name="Submit" class="submit" value="Submit">
                        <br />
                        <br />
                        </cfform>
                        </cfif>
    </body>
    </html>

    When you submit a form, the name of it doesn't matter.  When you process it it's form.this and form.that, not name_of_form.this and name_of_form.that.  In your code, the structure event_request does not exist until the cfparam tags create it.  All of those tags will create variables with empty strings.  Later your code adds a bunch of error messages and doesn't send any mail because of your if/else logic.

  • CFMail Tag Issue

    I have a form on my website that use the cfmail tag to send
    information collected from a form via email. I am no longer getting
    the email submitted from the form yet I'm also not getting an error
    and I haven't changed anything. I suspect it's a relay issue but my
    Sys Adm insist it's not and suggest I use mailto: I don't see the
    point of using a client side solution when I have a server side
    (and probably better) solution already in place.
    I have listed the code I'm using to process the form for
    reference in case I am missing something. Could anyone shed some
    light on this for me. If it's not my code what are the downsides to
    using a client side solution such as mailto ?
    Thanks

    I'm assuming the isDefined leadershipopp and joinassociation
    are checkboxes.
    But..
    If for any reason one of the other form elements wasn't
    defined, you'd have an error condition.
    Wrap the cfmail tag in a cftry block and then in the cfcatch
    email an admin email with the cfcatch.message and cfcatch.detail.
    Make sure you validate the form.email format, check cflib.org
    for a udf for this. you could also use cfform validation routines.
    An invalid email will throw an error.
    Additionally, use cfparam tags for each of the form elements
    with a default value.

  • CFMAIL in MX7

    I recently moved from CF5 to MX 7. When going through a
    CFMAIL query if an email address in to "To" field is malformed, the
    entire application appears to stop. In previous versions, it would
    continue sending email but would simply throw the malformed email
    into the undeliv folder
    Any ideas?

    Tried this as a fix - but gets me in trouble again!
    The error is below - but it stills triggers it if I add ";"
    at the end too ... my code is below this section.
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Missing semicolon
    (;) at end of SQL statement.
    The error occurred in D:\Reza\DATA\PROJECTS\Wild Asia
    web\WEB\Wild Asia\public_html\WWW\temp\X_validateEmails.cfm: line
    13
    11 :
    12 : <CFIF isValid("email",checkMembers.eMail)>
    13 : <cfquery name="addMember"
    datasource="#DataSourceWeb#" dbtype="ODBC">
    14 : INSERT INTO tblMembers(UnSub)
    15 : VALUES('True')
    <!--- check that emails are valid, if not unsubsrcibe
    --->
    <cfquery name="checkMembers" datasource="#DataSourceWeb#"
    dbtype="ODBC">
    SELECT *
    FROM tblMembers tblMembers
    </cfquery>
    <CFLOOP query="checkMembers">
    <CFIF isValid("email",checkMembers.eMail)>
    <cfquery name="addMember" datasource="#DataSourceWeb#"
    dbtype="ODBC">
    INSERT INTO tblMembers(UnSub)
    VALUES('True')
    WHERE addMember.MemberID = checkMembers.MemberID
    FROM tblMembers
    </cfquery>
    </CFIF>
    </CFLOOP>

  • CFMAIL - Background Image contained in TD Not Displaying in Outlook

    A backgorund image contained in a <TD width="400" background="http://www.abcdef.com/img/background_B.jpg"> does not appear when the html email message is opened in Outlook. However, if you click the having trouble viewing this email prompt the image does display on the web view. Is this a CFMAIL problem? If so does anyone have a work around for or other ideas where to look for a solution?

    As we don't know your code, your imaging library or anything else that you are doing - and my crystal ball is on the fritz - we can't really help :(.
    However, given that you are talking about CMYK the first question is about whether you a re working on a CMYK surface or converting to RGB?  If converting, how?
    Second, what filter is applied to the image?  DCT? Flate?  Other?
    Third, are you considering any DecodeParms on the image?
    Fourth, is the image indexed or not?
    And the list goes on..

  • CFMAIL Looping

    I have an application that I've written so that a user can
    send a group of people an email message. It is in two parts, the
    form and the action page that actually sends the email. The first
    page's code is as follows:
    <cfquery name="getEmail"
    datasource="#application.dsn#">
    SELECT *
    FROM tblEpolarityRPP_new
    ORDER BY EMAIL
    </cfquery>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <html>
    <head>
    <title>Email RPPs</title>
    <link rel="stylesheet" type="text/css"
    href="organized.css">
    </head>
    <body>
    <h2>Email RPPs</h2>
    <cfform action="rppemail_actiontest.cfm" method="post">
    <cfoutput query="getEmail">
    <!--- #getEmail.Email#<br> --->
    <input type="hidden" name="Email"
    value="#getEmail.Email#">
    </cfoutput>
    <p class="p5">Enter message here:<br>
    <textarea name="Message" rows="20"
    cols="50"></textarea><p>
    <input type="submit" value="Send
    Email">  <input type="reset" value="Clear
    Form">
    </cfform>
    </body>
    </html>
    The query retrieves about 710 email addresses from the table.
    When we submit, it apparently works okay, but according to the host
    of our web site, there are too many email addresses in the list and
    it doesn't send any because it hangs. I know that what the action
    page is doing is creating an email with 710 email addresses in the
    "TO" line. What I would like it to do is create 710 different
    emails, with one of the email addresses from the database in each
    message. According to the tech support person at the hosting site,
    this should fix the problem. The code on the action page is:
    <cfmail to="#Form.Email#"
    from="[email protected]" subject="ePolarity"
    type="html" server="mail.polarityinbalance.com">
    #Form.Message#
    </cfmail>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <html>
    <head>
    <title>Email RPP Results</title>
    </head>
    <body>
    Your email was successfully transmitted.<p>
    <a href="polarityadminindex.cfm">Click here</a>
    to return to the Administrator menu.
    </body>
    </html>
    Any suggestions on how to create a loop to insert one email
    address at a time into the email would be greatly appreciated.
    Thanks so much,
    Michelle Craig

    look into this document
    http://127.0.0.1:8500/cfdocs/htmldocs/wwhelp/wwhimpl/js/html/wwhelp.htm

  • CFMAIL Error

    I have a CFMAIL form i created on my developer machine at
    home (Widnows XP). The form let's me attach a file and send it
    using my server="mail.west.cox.net" which is my home email smtp.
    When I upload this program to my Linux Server I get a 500
    error and cannot figure out why. I changed the CFMAIL form to
    Server="localhost" and still get the 500 error. My code and error
    logs are as followed.
    The form send out a request to formmail.cfm which the code is
    below
    <html>
    <head>
    <title>Requesting Information Results Page in
    ColdFusion</title>
    <STYLE TYPE="text/css">
    body { margin-left: .25in; margin-right: .25in; color: black;
    font-size: 14pt; background-color:white;}
    A:visited {color:white}
    A:hover {color:white}
    A:active {color:white}
    A:mailto {color:white}
    </STYLE>
    </head>
    <CFMAIL TO= "[email protected]"
    FROM= "[email protected]"
    SUBJECT= "New Resume For Job Opening"
    server = "localhost"
    mimeattach="#Form.File#"
    username="[email protected]"
    password="aim12345"
    >
    A resume has been sent from your website.
    </CFMAIL>
    <CFOUTPUT>
    <br>
    The results of your resume were submitted on
    #DateFormat(Now())# #TimeFormat(Now())#<br><br>
    <hr>
    Please continue filling out the form to apply for this
    position!
    </CFOUTPUT>
    The error I get is 500 Error in internet explorer
    My Plesk Log says
    [Mon Jul 16 07:02:07 2007] [error] [client 68.2.107.191] File
    does not exist: /var/www/vhosts/aimwholesale.ws/httpdocs/CFIDE,
    referer:
    http://www.aimwholesale.ws/aimjob2/admin_resume.cfm
    CF Admin Log cfserver says
    07/16 10:02:12 Error [jrpp-6412] - The resource
    C:\Users\Toadster\Desktop\x-offers-4.1.8.tgz was not found.The root
    cause was: . The specific sequence of files included or processed
    is: /var/www/vhosts/aimwholesale.ws/httpdocs/aimjob2/formmail.cfm,
    line: 14
    07/16 10:09:34 Information [scheduler-0] - Run Client Storage
    Purge
    CF Admin Log application says
    "Error","jrpp-6412","07/16/07","10:02:12",,"The resource
    C:\Users\Toadster\Desktop\x-offers-4.1.8.tgz was not found.The root
    cause was: . The specific sequence of files included or processed
    is: /var/www/vhosts/aimwholesale.ws/httpdocs/aimjob2/formmail.cfm,
    line: 14 "
    My Plesk says something about
    /var/www/vhosts/aimwholesale.ws/httpdocs/CFIDE, the CFIDE directory
    doesnt even exist so I don't know it this is the problem, I would
    tend ot think the CF log would be more helpful than the Plesk Log.
    I did create that directory for the heck of it and still got the
    same error.
    Any help would be great, thanks
    Todd Warne

    I have looked at your source. You apparently omitted the form
    attribute
    enctype="multipart/form-data". It is required for upload.
    Did you also include the
    accept attribute of cffile? And absolute paths for
    destination and
    mimeattach? Test with the following code:
    <cfif isDefined("Form.submit") >
    <cffile action = "upload"
    fileField = "file"
    destination =
    "/var/www/vhosts/aimwholesale.ws/httpdocs/uploaded_resume"
    accept = "text/html, application/zip,
    application/x-compressed, text/plain, application/msword,
    application/pdf"
    nameConflict = "MakeUnique">
    <CFMAIL TO= "[email protected]"
    FROM= "[email protected]"
    SUBJECT= "New Resume For Job Opening"
    server = "localhost"
    mimeattach="/var/www/vhosts/aimwholesale.ws/httpdocs/uploaded_resume/#cffile.serverFile#"
    username="[email protected]"
    password="aim12345"
    >
    A resume has been sent from your website.
    </CFMAIL>
    <br>
    The results of your resume were submitted on
    <cfoutput>#DateFormat(Now())#
    #TimeFormat(Now())#</cfoutput><br><br>
    <hr>
    Please continue filling out the form to apply for this
    position!
    <cfelse>
    <html>
    <head>
    <STYLE TYPE="text/css">
    body{color: black; background-color: white; font-size: 14pt}
    TD{font-size: 12pt;font-weight:bolder;}
    h1{color: black; text-align:center;}
    </style>
    <title>Upload Resume</title>
    </head>
    <br>
    <h1>UPLOAD RESUME </h1>
    <cfform name="CFForm_1" action="
    http://www.aimwholesale.ws/aimjob2/formmail.cfm"
    method="POST" enctype="multipart/form-data">
    <table cellpadding="0" cellspacing="0" width="586"
    bordercolor="#000000">
    <tr>
    <td width="147"></td>
    <td width="434"></td>
    </tr>
    <tr>
    <td width="147"><div
    align="right"><b><i>Select
    Resume:</i></b></div></td>
    <td width="434">
    <p>
    <cfinput name="File" type="file" value="" size="60">
    </table>
    <br>
    <cfinput type="submit" name="sbmt"
    value="Submit"><cfinput type="reset"
    value="Reset"></p>
    </cfform>
    </body>
    </html>
    </cfif>

  • CFFORM (Flash) Validation with Regular Expressions Not Working

    I am having troubles getting regular expression validation to
    work in a CFFORM. The below code is an extract of a much larger
    form, the first name and last name have a regular expression
    validation...and it doesn't work!
    I'd appreciate any comments/info for help on this, have
    searched high and low on information to get this working...but no
    joy.
    The code is:
    <cffunction name="checkFieldSet" output="false"
    returnType="string">
    <cfargument name="fields" type="string" required="true"
    hint="Fields to search">
    <cfargument name="form" type="string" required="true"
    hint="Name of the form">
    <cfargument name="ascode" type="string" required="true"
    hint="Code to fire if all is good.">
    <cfset var vcode = "">
    <cfset var f = "">
    <cfsavecontent variable="vcode">
    var ok = true;
    var msg = "";
    <cfloop index="f" list="#arguments.fields#">
    <cfoutput>
    if(!mx.validators.Validator.isValid(this,
    '#arguments.form#.#f#')) { msg = msg + #f#.errorString + '\n';
    ok=false; }
    </cfoutput>
    </cfloop>
    </cfsavecontent>
    <cfset vcode = vcode & "if(!ok)
    mx.controls.Alert.show(msg,'Validation Error'); ">
    <cfset vcode = vcode & "if(ok) #ascode#">
    <cfset vcode =
    replaceList(vcode,"#chr(10)#,#chr(13)#,#chr(9)#",",,")>
    <cfreturn vcode>
    </cffunction>
    <cfform name="new_form" format="flash" width="600"
    height="600" skin="halosilver" action="new_data.cfc">
    <cfformgroup type="panel" label="New Form"
    style="background-color:##CCCCCC;">
    <cfformgroup type="tabnavigator" id="tabs">
    <cfformgroup type="page" label="Step 1">
    <cfformgroup type="hbox">
    <cfformgroup type="panel" label="Requestor Information"
    style="headerHeight: 13;">
    <cfformgroup type="vbox">
    <cfinput type="text" name="reqName" width="300"
    label="First Name:" validate="regular_expression" pattern="[^0-9]"
    validateat="onblur" required="yes" message="You must supply your
    First Name.">
    <cfinput type="text" name="reqLname" width="300"
    label="Last Name:" validate="regular_expression" pattern="[^0-9]"
    validateat="onblur" required="yes" message="You must supply your
    Last Name.">
    <cfinput type="text" name="reqEmail" width="300"
    label="Email:" validate="email" required="yes" message="You must
    supply your email or the address given is in the wrong format.">
    <cfinput type="text" name="reqPhone" width="300"
    label="Phone Extension:" validate="integer" required="yes"
    maxlength="4" message="You must supply your phone number.">
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    <cfformgroup type="horizontal"
    style="horizontalAlign:'right';">
    <cfinput type="button" width="100" name="cnt_step2"
    label="next" value="Next"
    onClick="#checkFieldSet("reqName,reqLname,reqEmail,reqPhone","new_form","tabs.selectedInd ex=tabs.selectedIndex+1")#"
    align="right">
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    </cfform>

    quote:
    Originally posted by:
    Luckbox72
    The problem is not the Regex. I have tested 3 or 4 different
    versions that all work on the many different test sites. The
    problem is it that the validation does not seem to work. I have
    changed the patter to only allow NA and I can still type anything
    into the text box. Is there some issue with useing Regex as your
    validation?
    Bear in mind that by default validation does not occur until
    the user attempts to submit the form. If you are trying to control
    the characters that the user can enter into the textbox, as opposed
    to validating what they have entered, you will need to provide your
    own javascript validation.

  • Cfmail formatting and alignment

    I have a cfform. When filled out and submitted, the action
    page writes the info to the db and redisplays the form on the
    screen so that it can be printed. Also, it generates an email to
    one of our internal departments. Everything works fine except for
    the layout of the email. I just used the same code as the screen
    display, inside of cfmail. But the cfmail output does not look the
    same, some columns are smaller than others, field labels are
    wrapped, etc. How can I get the cfmail to look just like the screen
    display, or is that the way cfmail works ?
    This is what I have for my cfmail header :
    <cfmail to="[email protected]"
    cc="[email protected]"
    from="#session.fromname#"
    subject="Request for Quotation : #session.quote_type#
    Transportation"
    query="qryGet_Quote_Data"
    type="html">

    Hi Vijay,
    Search for the following in the search bar at the top right of SCN's page:
    ForceLargerFonts
    UsePrecisePositioningForText
    TruncationAdjustment
    All these are registry keys that you might need to apply on the machine.
    -Abhilash

  • Cfmail: attach file with cfmailparam?

    Greetings
    I created a form several years ago that allows users to submit maintenance requests. They check a box if they want a receipt sent to their own email.
    The requests do not get captured in a DB- simply sends to email.
    This all has been working fine- I am now attemping to add document attachment capability- I am obviously not using the correct method.
    The form itself has:
    <cfform action="request_action.cfm" method="post" name="detail" id="detail" enctype="multipart/form-data">
    etc. etc.
    Upload File or Sceenshot if neccessary: <cfinput name="file_upload" type="File" required="no" size="40"></cfform>
    The request_action.cfm has:
    <cfmail to=
    etc. etc.
    <cfif isDefined("Form.file_upload") >
        <cfmailparam 
            contentID = "file_upload"
            disposition = "attachment"
            file = "#Form.file_upload#" 
            type ="application/msword,application/docx,application/pdf,application/octet-stream,applicatio n/msword,text/plain,binary/octet-stream, image/pjpeg,  image/gif, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-word.document.12, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"></cfif>
    </cfmail>
    When I run without the above code, everything works. When I run with the cfmailparam, it sends a strange receipt with no content?
    Thanks for any help with this
    Norman

    You didn't post any code that shows that you actually uploaded the file to your server. 

  • Cfgrid TROUBLES

    Hi slowly tearing my hair out
    Building a Telephone Billing solution this end. And the
    ratetable (various prices to various destination) is what CFGRID
    was made for
    I have CF 7.02. The applet version just won't load in my
    browser Version 1.5.0 (build 1.5.0_06-b05) java available. so I
    have given up and moved onto Flash
    Performing standard query on ratetable
    Flash form appears all headings present and correct from the
    query
    no other data !!!
    I've googled and everyone else seems to be able to do it and
    fancy stuff to boot. Anyone else experienced this problem?
    Regards
    Dave

    <update>
    <meta http-equiv="Content-Type" content="text/html;
    charset=windows-1252">
    <cfquery name="getratecard" datasource="billingengine">
    select * from RATETABLE order by DIGITS asc
    </cfquery>
    <cfform>
    <cfgrid name = "FirstGrid" format="flash"
    height="320" width="580"
    font="Tahoma" fontsize="12"
    query = "getratecard">
    </cfgrid>
    </cfform>
    Hi I'm having trouble with the above code (based on the
    example given above)
    The result is a Grid with all it's heading present and
    correct but the cells below are not populated. I'm at a loss as to
    why I'm running Coldfusion 7.
    Version 7,0,2,142559
    I moved to flash as the applet does not work either the
    CFGrid class file cannot be found.
    What's the secret?
    Dave

  • Cfmail type="html" with gmail

    When I use cfmail to send an html type message to
    gmail… I can’t see the content when this message
    arrives.
    Any body can help

    Hi there,
    The usual CSS syntax does not work in Flash. It has its own
    stylesheet
    syntax. Please visit the below URL that has "ColdFusion MX
    Flash Form
    Style Reference". You should find appropriate style syntax
    there.
    Go to
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/js/html/wwhelp.htm
    Under "ColdFusion Reference" on the left side pane, you
    should have an
    item named "ColdFusion MX Flash Form Style Reference".
    Thanks.
    - Milind Joshi
    dizzyjay3268 wrote:
    > for some reason, my styling is not working on all the
    items on my form. I've
    > got the styling working on the cfform tag but on some of
    the cfformgroups and
    > cfformitem tags (using the same styling tags) is not
    working. Also not working
    > are labels on some of the cffgroup types. I'm not sure
    what I'm doing wrong
    > but I'd like to get the styling specific per cfformgroup
    tags. Anything I can
    > look at to narrow down my error?
    >
    > I also have a cfformitem type="html" tag that I'd like
    to style the html to be
    > centered. I know I can't use <div> or class=""
    commands, is there an
    > alternative?
    >

  • Mini-Dvi-to-Video trouble

    I just bought a mini-dvi-to-video adapter so I could use my TV as a display. More specifically, so I could use my VCR to record what's on my Mac's display. I also bought a headphone-to-composite cable adapter. I'm using a double-headed (is that one male or female? It's male, isn't it?) composite cable from the video adapter to the VCR. The problem is, it doesn't show up. The sound plays (and records) fine, but the video neither shows up on the TV screen nor records onto the tape. What's the problem? Both adapters are Dynex, my computer's a Late 2006 iMac (I think), the cable is WireLogic, and both the VCR and TV are Sony. Please help, thanks.

    So if you eliminate the double headed splitter and plug straight into the TV, does the video still not show up?
    FYI, there have been reports in the past of trouble with the Dynex video adapter. You may need to purchase the Apple OEM one. The Dynex may lack having a ROM inside of it with a proper EDID in the ROM. This is crucial to the Mac.

Maybe you are looking for

  • How do I setup my time capsule with wireless internet?

    I I have "Clear" so theres no place on the device to plug up an ethernet cord.. PLEASE HELP!!!! Would like to use the time capsule mainly as an external hard drive. PLEASE HELP!!!

  • (Invoice register Report – Payment Register report = Aging Report)

    Hi, The total balance for Invoice registers report "minus" the balance for Payment register report not give me the balance of Invoice aging report The expected behavior: It must minus the balance between the two reports equal to invoice aging report

  • Upgrade WLC 5508 Ver. 7.0.98.0 to Ver 7.6.110.0

    i will upgrade WLC 5508 Ver 7.0.98.0 with License 50 AP. to Ver 7.6.110.0 will it ask to install license ?

  • I can't find my old apps

    Hi all, I just updated my old 3GS and was trying to restore some apps. When I try to restore via iTunes, it restarts my iPhone andnothing happens. When I try to find them in my download list, it only shows my 10 last downloaded apps. Even if I try to

  • Phone's Web Access Page is Not Loading

    Hello All, CallManager: 8.6.2.24901-1 Device: Cisco Wireless IP Phone CP-7925G One of our 7925 IP Phone's is having some connectivity issues. And yesterday I was looking through the Web Access page of the phone, checking out Network Profiles, logs, e