Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Garrett Fisher 341 posts 496 karma points
    Nov 04, 2009 @ 17:28
    Garrett Fisher
    0

    Problem with CWS_ContactForm

    Hi,

     

    I'm having a very frustrating problem with the .NET Contact Form that comes out of the box.  Somebody messed with some code here and suddenly the Macro displays like this in the browser:

    <Macro:  (,)>

    Even though it looks like This in the template:

    <umbraco:Macro
    EmailTo="[#emailTo]"
    EmailSubject="[#emailSubject]"
    EmailBody="[#emailBody]"
    EmailReplyFrom="[#emailReplyFrom]"
    EmailReplySubject="[#emailReplySubject]"
    EmailReplyBody="[#emailReplyBody]"
    EnableSSL="[#enableSSL]"
    FormHeader="[#headerText]"
    FormText="[#formText]"
    ThankYouHeaderText="[#thankYouHeaderText]"
    ThankYouMessageText="[#thankYouMessageText]"
    runat="server">
    </umbraco:Macro>

    In other words, it's botched.  There seems to be no connection between the values you enter in the UI and what you get on the screen.  The only way I can get the form to appear now is to hard-code it in the Macro (eg., EmailTo="[email protected]").  But this doesn't work because the email is not sending the values the user entered.  What mechanism exactly does that?  Is it the [#xyz] syntax that tells the system it's a variable?

    Can anyone offer some help on this broken contact form?  Need to get it up and running today.

    Thanks,

    Garrett

  • Garrett Fisher 341 posts 496 karma points
    Nov 04, 2009 @ 18:30
    Garrett Fisher
    0

    Help.  How do the contact form values make their way into the email message which gets sent to the EmailTo address?  Here is my code:

    <umbraco:Macro 
    EmailTo="[email protected]"
    EmailSubject="Request for Contact from InterCLICK.com"
    EmailBody="[#name], [#Company], [#emailAddress], [#Role], [#message]"
    EmailReplyFrom="[email protected]"
    EmailReplySubject="Thank You for Contacting InterCLICK"
    EmailReplyBody="A representative will contact you shortly."
    EnableSSL="0"
    FormHeader="Enter your inquiry below for a quick response:"
    FormText=" "
    ThankYouHeaderText="Thanks!"
    ThankYouMessageText="Thank you for contacting us. A representative will be with you shortly."
    Alias="CWS_ContactForm" runat="server">
    </umbraco:Macro>

    Regarding the emailBody, these are indeed the exact names of the form fields, but the content of the email that comes to [email protected] is literally nothing but "[#message]".  What is happening here???  This should be simple.

    Thanks,

    Garrett

  • Garrett Fisher 341 posts 496 karma points
    Nov 05, 2009 @ 15:54
    Garrett Fisher
    0

    Can anyone offer any advice on this?  What's happening is that the email is being sent, but the content/body of it is

    [#message]

    (if I put the pound signs in it)

    and

    [name]

    if I leave them out.

    How can I get the form values to show up in the response email?????

    //Garrett

     

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies