Skip to main content
August 14, 2008
Question

Error in form when hitting submit for email

  • August 14, 2008
  • 1 reply
  • 627 views
The error occurred in C:\Inetpub\is.butlercc.edu\webtec_apply.cfm: line 588

586 : <cfif isDefined('form.submit')>
587 :
<b>588 : <cfmail to="srinkenbaugh@gmail.com" from="scoleman3@butlercc.edu" Subject="Web Tec Apply" type="HTML"></b>
589 : Name: #form.name#<br />
590 : Address: #form.address#<br />

How do i get it to stop throwing an error
*new to CF*
    This topic has been closed for replies.

    1 reply

    Inspiring
    August 14, 2008
    Hello Golgotha07,


    Does it say anything else in the error? Have you defined a cfmail server?

    > The error occurred in C:\Inetpub\is.butlercc.edu\webtec_apply.cfm:
    > line 588
    >
    > 586 : <cfif isDefined('form.submit')>
    > 587 :
    > 588 : <cfmail to="srinkenbaugh@gmail.com"
    > from="scoleman3@butlercc.edu"
    > Subject="Web Tec Apply" type="HTML">

    > 589 : Name: #form.name#<br />
    > 590 : Address: #form.address#<br />
    > How do i get it to stop throwing an error
    > *new to CF*


    August 14, 2008
    No SMTP server specified for the cfmail tag.
    To send SMTP mail messages, ColdFusion requires that a default SMTP server be specified. You can set the default SMTP server using the Mail page of the ColdFusion Administrator. Alternatively, you can ensure that all cfmail tags have a server attribute. In this case, no server attribute was provided and no default SMTP server setting has been specified.

    sorry i left that out i am so confused on what to do. my boss just threw this at me. I have never done any CF before ever.
    August 14, 2008
    For starters, there is usually a specific reason why the page failed above the statement "The error occurred in..." Can you post that?

    Also, you can verify that your mail server is setup by going into your CF administrator, go to server settings, click on "Mail", check off the box labeled "Verify mail server connection", then click submit changes.