We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36461
    • 102 Posts
    Hello,

    I noticed several "formit not sending emails" threads here.
    This is happening for me as well and I want to find out why is this happening.

    I have 3 sites who use formit they all have exactly the same form code, exactly the same formit call, exactly the same &emailTpl.
    I've those from one site to another.
    On tow sites formit is working on third site it isn't and I don't know why.
    All three sites are modx v2.1.3

    There are 3 addons on the site where formit doesn't work , that aren't on other sites:
    ucosnews
    if
    babel

    Form is really simple too
    [[!FormIt? 
    &hooks=`email,redirect` 
    &emailTpl=`sentEmailTpl` 
    &emailSubject=`Message` 
    &emailTo=`myemail` 
    &validate=`Name:required:minLength=^2^, 
    	Email:email:required, 
    	Message:required` 
    &redirectTo=`1`
    ]]
    
    <div id="contact-area">
    <form id="commentForm" action="[[~[[*id]]]]" method="post">
    
    	<label for="Name"><strong>Vārds:</strong> <span class="error">[[!+fi.error.Name]]</span></label> 
        <input id="Name" class="required" type="text" name="Name" value="[[!+fi.Name]]" /> 
        
        <label for="Email"><strong>E-pasts:</strong> <span class="error">[[!+fi.error.Email]]</span></label> 
        <input id="Email" class="required email" type="text" name="Email" value="[[!+fi.Email]]" /> 
        
        <label for="Message"><strong>Ziņojums:</strong> <span class="error">[[!+fi.error.Message]]</span></label>
        <textarea id="Message" class="required" name="Message" rows="40" cols="20">[[!+fi.Message]]</textarea> 
        
        <input class="submit-button" type="submit" name="submit" value="Sūtīt" /></form>
    
    </div>