Formit mail not sent, but quickMail is working

Hi, there, I have a simple form that Im trying to use to send and email, the form is quite simple

[[!FormIt?
&hooks=email,redirect
&emailTpl=emailChunk
&emailTo=camilo.casadiego@gmail.com
&emailSubject=New customer!
&emailUseFieldForSubject=1
&redirectTo=1
&validate=nospam:blank, name:required, phone:required, address:required, email:email:required, subject:required, message:required
]]

[[!+fi.validation_error_message:notempty=<p>[[!+fi.validation_error_message]]</p>]]

      <div class="controls">

        <div class="row">

          <div class="section-head col-sm-12">
            <h4>
              <span>Get</span><br>
              In Touch
            </h4>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <input id="form_name" type="text" name="name" placeholder="Name" required="required"
                     value="[[!+fi.name]]">
              <span class="error">[[!+fi.error.name]]</span>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <input id="form_email" type="email" name="email" placeholder="Email" required="required"
                     value="[[!+fi.email]]">
              <span class="error">[[!+fi.error.email]]</span>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <input id="form_phone" type="text" name="phone" placeholder="Phone" required="required"
                     value="[[!+fi.phone]]">
              <span class="error">[[!+fi.error.phone]]</span>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <input id="form_address" type="text" name="address" placeholder="Address" required="required"
                     value="[[!+fi.address]]">
              <span class="error">[[!+fi.error.address]]</span>
            </div>
          </div>
          <div class="col-md-12">
            <div class="form-group">
              <input id="form_subject" type="text" name="subject" placeholder="Subject" value="[[!+fi.subject]]">
              <span class="error">[[!+fi.error.subject]]</span>
            </div>
          </div>
          <div class="col-md-12">
            <div class="form-group">
              <textarea id="form_message" name="message" placeholder="Message" rows="4" required="required"
                        value="[[!+fi.message]]"></textarea>
              <span class="error">[[!+fi.error.message]]</span>
            </div>
          </div>

          <div class="col-md-12 text-center">
            <button type="submit"><span>Send Message</span></button>
          </div>

        </div>
      </div>
    </form>
  </div>
</div>

from,checking [SMTP mail not sent - #14 by andytough] and [FormIt not sending - mail function - #7 by halftrainedharry] I installed the quickMail extra, and tested with the same mail im using on the form with suceesful results, what can I be missing?

this is the response of using [[!QuickEmail? &debug=1 &to=camilo.casadiego@gmail.com]] on a resource, also the mail arrives to my inbox perfectly when running the test resource.

System Settings (used if property is missing):

emailsender System Setting: xxxx
site_name System Setting: MODX Revolution

Properties (from parameters, property set, or snippet default properties:

Tpl chunk name:
subject:
to: camilo.casadiego@gmail.com
fromName:
replyTo:
emailSender:
allowHtml: 1
message:

Final Values (actually used when sending email):

subject: Default Subject
to: camilo.casadiego@gmail.com
fromName: QuickEmail
replyTo: xxxx
emailSender: xxxx
allowHtml: 1
Message Body: Default Message

Send reported successful

2022-04-19 21:19:56 SERVER → CLIENT: 220-mi3-sr2.supercp.com ESMTP Exim 4.94.2 #2 Tue, 19 Apr 2022 17:19:56 -0400 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
2022-04-19 21:19:56 CLIENT → SERVER: EHLO xxxx.com
2022-04-19 21:19:56 SERVER → CLIENT: 250-mi3-sr2.supercp.com Hello xxxx.com [68.66.200.208]250-SIZE 78643200250-8BITMIME250-PIPELINING250-PIPE_CONNECT250-AUTH PLAIN LOGIN250 HELP
2022-04-19 21:19:56 CLIENT → SERVER: AUTH LOGIN
2022-04-19 21:19:56 SERVER → CLIENT: 334 VXNlcm5hbWU6
2022-04-19 21:19:56 CLIENT → SERVER: [credentials hidden]
2022-04-19 21:19:56 SERVER → CLIENT: 334 UGFzc3dvcmQ6
2022-04-19 21:19:56 CLIENT → SERVER: [credentials hidden]
2022-04-19 21:19:56 SERVER → CLIENT: 235 Authentication succeeded
2022-04-19 21:19:56 CLIENT → SERVER: MAIL FROM:
2022-04-19 21:19:56 SERVER → CLIENT: 250 OK
2022-04-19 21:19:56 CLIENT → SERVER: RCPT TO:camilo.casadiego@gmail.com
2022-04-19 21:19:56 SERVER → CLIENT: 250 Accepted
2022-04-19 21:19:56 CLIENT → SERVER: DATA
2022-04-19 21:19:56 SERVER → CLIENT: 354 Enter message, ending with “.” on a line by itself
2022-04-19 21:19:56 CLIENT → SERVER: Date: Tue, 19 Apr 2022 17:19:56 -0400
2022-04-19 21:19:56 CLIENT → SERVER: To: “xxxx” camilo.casadiego@gmail.com
2022-04-19 21:19:56 CLIENT → SERVER: From: QuickEmail
2022-04-19 21:19:56 CLIENT → SERVER: Reply-To: xxxx
2022-04-19 21:19:56 CLIENT → SERVER: Subject: Default Subject
2022-04-19 21:19:56 CLIENT → SERVER: Message-ID: fzbTIzRRHuXsBW2iKF8rxhgFvpYBm0GGiyqpyYJqJE@xxxx.com
2022-04-19 21:19:56 CLIENT → SERVER: X-Mailer: PHPMailer 6.4.1 (GitHub - PHPMailer/PHPMailer: The classic email sending library for PHP)
2022-04-19 21:19:56 CLIENT → SERVER: MIME-Version: 1.0
2022-04-19 21:19:56 CLIENT → SERVER: Content-Type: text/html; charset=UTF-8
2022-04-19 21:19:56 CLIENT → SERVER:
2022-04-19 21:19:56 CLIENT → SERVER: Default Message
2022-04-19 21:19:56 CLIENT → SERVER:
2022-04-19 21:19:56 CLIENT → SERVER: .
2022-04-19 21:19:56 SERVER → CLIENT: 250 OK id=1ngvGO-00GxPn-Ry
2022-04-19 21:19:56 CLIENT → SERVER: QUIT
2022-04-19 21:19:56 SERVER → CLIENT: 221 mi3-sr2.supercp.com closing connection

I also did the test locally, and it works without any issue.

Dooh, for anyone with a similar issue, make sure you aren’t missing the &emailFrom i thought it was taken from the modx parameter but it wasn’t

It should take the value from the “email” form field or the system setting “emailsender” if emailFrom is empty.

1 Like

weird, it was set on the system settings, but only until I explicitly added it to the formIt declaration it started working