Hi my friends. I have a similar problem with a contact form as the previous ones described here.
I have Modx installed in a localhost setting without smtp service, so I'm using Gmail.
First, I tested with QuickEmail and I had to change the prefix/port combo to 'ssl' and '465'.
After the change, QuickEmail successfully sent an test email to my Gmail account.
However, with FormIt I can't send any email using the same settings that I have in System Settings (same Gmail account and smtp settings -- I got that configuration from this thread).
I followed all the Google directions to allow other apps to access my Gmail account:
https://www.google.com/settings/u/1/security/lesssecureapps
https://accounts.google.com/b/0/DisplayUnlockCaptcha
https://security.google.com/settings/security/activity?hl=en&pli=1
My code for my contact form is:
[[!FormIt?
&hooks=`email`
&emailTpl=`sentEmailTpl`
&emailSubject=`Test Message`
&emailTo=`*****************@gmail.com`
]]
<form action="[[~[[*id]]]]" id="contact-form">
<input type="text" class="contact-info" id="contact_name" name="contact_name" placeholder="Your name" value="[[+fi.contact_name]]" />
<input type="text" class="contact-info" id="email" name="email" placeholder="Your email" value="[[+fi.email]]" />
<input type="text" class="contact-info" id="subject" name="subject" placeholder="Subject" value="[[+fi.subject]]" />
<textarea class="contact-info" id="message" name="message" rows="10" placeholder="Your message">[[+fi.message]]</textarea>
<input type="button" id="clear-fields" value="Clear fields" />
<div class="captcha"></div>
<input type="submit" id="send-message" value="Send your message" />
</form>
Finally, my sentEmailTpl chunk:
Message from: [[+contact_name]]<br />
<strong>[[+subject]]</strong><br />
<p>[[+message]]</p> <br />
For replying to [[+contact_name]], send an email to <a href="mailto:[[+email]]">[[+email]]</a>
Thanks a lot for your help!