We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28626
    • 87 Posts
    I changed to postfix but that doesn’t help either:

    Oct 20 20:04:43 lamp postfix/qmgr[2317]: 7BB7E24216: from=<root@UNKNOWN>, size=284, nrcpt=1 (queue active)
      • 26903
      • 1,336 Posts
      You need to install the ’mail’ or mailx’ packages to get mail, its a command line client, not a server side implementation.
        Use MODx, or the cat gets it!
        • 3749
        • 24,544 Posts
        Are you sure you wouldn’t rather just set the MODx SMTP System Settings and use an SMTP account you have somewhere (e.g., Gmail). Then all MODx snippets or plugins that use mail() will work using SMTP on just about any server.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 28626
          • 87 Posts
          It seems to work now on my online host. I contacted support and now it works. I can send mails through smtp and without smtp although does end up in the spam folder.

          I still have an issue, the mails arrive without body text

          [[!FormIt?  
             &hooks=`email,redirect`  
             &emailUseFieldForSubject=`1`  
             &emailTpl=`MyEmailChunk`  
             &submitVar=`emailbtn`
             &emailTo=`[email protected]`  
             &store=`yes`
             &redirectTo=`409`
             &validate=`name:required,   
          	      email:email:required,   
          	      subject:required,   
          	      text:required:stripTags`  
          ]]  
          
          <p>[[+fi.error.error_message]]</p>
          <form class="form" action="[[~[[*id]]]]" method="post">  
              <input name="nospam:blank" type="hidden" />  
            
              <label for="name">  
                  Naam:  
                  <span class="error">[[+fi.error.name]]</span>  
              </label>  
              <input id="name" name="name" type="text" value="[[+fi.name]]" />  
            <br class="clear" />
              <label for="email">  
                  E-mail:  
                  <span class="error">[[+fi.error.email]]</span>  
              </label>  
              <input id="email" name="email" type="text" value="[[+fi.email]]" />  
            <br class="clear" />
              <label for="subject">  
                  Onderwerp:  
                  <span class="error">[[+fi.error.subject]]</span>  
              </label>  
              <input id="subject" name="subject" type="text" value="[[+fi.subject]]" />  
            <br class="clear" />
              <label for="text">  
                  Mededeling:  
                  <span class="error">[[+fi.error.text]]</span>  
              </label>  
              <textarea id="text" cols="55" rows="7" name="text">[[+fi.text]]</textarea>  
              <br class="clear" />
          <div class="form-buttons">  
                  <input type="submit" name="emailbtn" value="Verzenden" />  
              </div>
          </form>
              <br class="clear" /> 
            • 3749
            • 24,544 Posts
            That’s most likely an error in your emailTpl chunk.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 28626
              • 87 Posts
              Thanks BobRay, I really didn’t notice that I had removed the template.
                • 3749
                • 24,544 Posts
                That will do it. wink
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting