We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3483
    • 6 Posts
    Hi Ya’ll,

    I’ve been trying to get Eform working since last week thursday, but even the simplest forms will not send email... However if I manually upload a simple test_mail.php on the server and run that; I do receive mail!

    Can someone please help me out here, cause I dont know what i’m doing wrong here. If easier I can send my login in a PM, but maybe the code will be enough:

    Here’s my two chunks:

    {{ContactForm}}

    <p class="error">[+validationmessage+]</p>
     
    <form method="post" action="[~[*id*]~]" id="EmailForm">
     
    	<fieldset>
    		<h2> Contact Us</h2>
     
    		<input name="formid" type="hidden" value="ContactForm" />
     
    		<label for="cfName">Your name:
    		<p><input name="name" id="cfName" class="text" type="text" eform="Your Name::1:" /></p></label>
     
    		<label for="cfEmail">Your Email Address:
    		<p><input name="email" id="cfEmail" class="text" type="text" eform="Email Address:email:1" /></p> </label>
     
    		<label for="cfRegarding">Regarding:
    		<p><input name="subject" id="cfRegarding" class="text" type="text" eform="Form Subject::1" /></p> </label>
     
    		<label for="cfMessage">Message:
    		<p><textarea name="message" id="cfMessage" eform="Message:textarea:1"></textarea></p>
    		</label>
     
    		<label> </label><p><input type="submit" name="contact" id="cfContact" class="button" value="Send This Message" /></p>
     
    	</fieldset>
     
    </form>


    plus {{ContactFormReport}}

    <p>Dit is een opmerking van <b>[+name+]</b> verstuurd vanaf www.kaliz.nl, onderstaand de details:</p>
     
    <p>Name: [+name+]</p>
    <p>Email: [+email+]</p>
    <p>Regarding: [+subject+]</p>
    <p>Comments:<br />[+message+]</p>
     
    <p>Check deze link om te antwoorden: <a href="mailto:[+email+]?subject=RE: [+subject+]">[+email+]</a></p>


    And here’s the snippet: [[EmailForm]]

    <?php
    [!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[email protected]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`1`  !]
    ?>


    Hope someone can help me out here! Many thanks in advance!
      • 26931
      • 2,314 Posts
      Hi BKA,

      and here’s the snippet: [[EmailForm]]
      <?php
      [!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[email protected]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`1` !]?>
      don’t put your call in a snippet, just place it in your template like this:
      [!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[email protected]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`1`  !]
        • 3483
        • 6 Posts
        OMG, I do feel stupid now... But also very very happy! cool

        Thanks a bunch, won’t make that mistake twice!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Some basic information on how snippets work
          http://www.sottwell.com/how-snippets-work.html
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 36416
            • 589 Posts
            Quote from: sharkbait at Nov 02, 2009, 08:06 AM

            don’t put your call in a snippet, just place it in your template

            ...and try to match your snippet formid parameter and chunk <form id="..."> tag, too.
              • 38685
              • 59 Posts
              BTW you should update the Subject line with <SOLVED>...
                Paul AL Bakulich - Association for Computing Machinery Professional Member
                http://palbakulich.me/ | http://twitter.com/#!/palhmbs