I'm currently on modx cloud and need to send emails via SMTP for the contact form. I want it to come from a gmail address. I'm using SMTP but I just can't seem to get it right. I always get redirected back to the contact form page with no displayed errors, no email sent and no submissions logged in FormSave. Here is the form I am using and my SMTP settings. If someone could let me know what I'm getting wrong I would really appreciate it.
SMTP Settings:
Mail Charset: UTF-8
Mail Encoding: 8bit
SMTP Authentication: Yes
SMTP Helo Message: [blank]
SMTP Hosts: smtp.gmail.com
SMTP Keep-Alive: No
SMTP Port: 465
SMTP Connection Prefix: tls
SMTP Single To: No
SMTP Timeout: 10
SMTP User: [full gmail address to send emails from]
Use SMTPL: Yes
Form
[[!FormIt?
&hooks=`recaptcha,spam,FormSave,email,redirect`
&emailTpl=`contactEmailTpl`
&emailTo=`[email protected]`
&redirectTo=`82`
&fsFormTopic=`Contact`
&validate=`name:required,
email:email:required,
name:required,
comments:required:stripTags
]]
[[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]]
<form action="[[~[[*id]]]]" class="contact-form" id="contactform" method="post">
<input type="hidden" name="nospam:blank" value="" />
<p class="input-block">
<label for="name">Your Name: <span class="required">*</span><i>(required)</i><span class="required">[[!+fi.error.name]]</required></label>
<input type="text" name="name" id="name" />
</p>
<p class="input-block">
<label for="email">E-mail: <span class="required">*</span><i>(required)</i><span class="required">[[!+fi.error.email]]</span></label>
<input type="text" name="email" id="email" />
</p>
<p class="input-block">
<label for="web">Website:<span class="required">[[!+fi.error.web]]</span></label>
<input type="text" name="web" id="web" />
</p>
<p class="input-block">
<label for="message">Message: <span class="required">*</span><i>(required)</i><span class="required">[[!+fi.error.comments]]</span></label>
<textarea name="comments" id="message"></textarea>
</p>
<p class="input-block">
[[!+formit.recaptcha_html]]
[[!+fi.error.recaptcha]]
</p>
<p class="row">
<button type="submit" class="button gray">Send</button>
</p>
</form>