I'm not really sure if I'm in the right thread or whether I'm asking a completely stupid question (although I've always told people that there is no such thing as a stupid question the older I've got the more I realise that there are plenty).
I am working my way through a site which needs a contact form. Having been converted to / taught / told to use MODX by a good friend of mine who is a web developer I am trying to use Formit. It seems dead easy even when I combine it with Bootstrap.
(my background is IT - big systems but as an Analyst and a Business Analyst at that - so little technical ability - then moved into management and had any remaining technical ability sucked out of my brain)
I can get the form displayed (I'm using the following code )
[[!FormIt?
&hooks=`email,redirect`
&emailTpl=`contactEmailTpl`
&emailSubject=`Contact from Fred's Site Site`
&emailTo=`
[email protected]`
&redirectTo=`15`
]]
<div class="container" style="position:absolute;top:70px;left:120px;">
<div class="row">
<div class="col-md-6">
<div class="well well-sm">
<form class="form-horizontal" action="[[~[[*id]]]]" method="post">
<fieldset>
<legend class="text-center header">Contact us</legend>
<div class="form-group">
<div class="col-md-10 col-md-offset-1">
<input id="fname" name="fname" type="text" value="[[!+fi.fname]]" placeholder="First Name" class="form-control">
</div>
</div>
<div class="form-group">
<div class="col-md-10 col-md-offset-1">
<input id="lname" name="lname" type="text" value="[[!+fi.lname]]" placeholder="Last Name" class="form-control">
</div>
</div>
<div class="form-group">
<div class="col-md-10 col-md-offset-1">
<input id="email" name="email" type="text" value="[[!+fi.email]]" placeholder="Email Address" class="form-control">
</div>
</div>
<div class="form-group">
<div class="col-md-10 col-md-offset-1">
<input id="phone" name="phone" type="text" value="[[!+fi.phone]]" placeholder="Phone" class="form-control">
</div>
</div>
<div class="form-group">
<div class="col-md-10 col-md-offset-1">
<textarea class="form-control" id="message" value="[[!+fi.message]]" name="message" placeholder="Enter your massage for us here. We will get back to you within 2 business days." rows="7"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-md-12 text-center">
<input type="submit" class="btn btn-primary btn-lg">Submit</input>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
The tpl is :
<h1>Contact From South Tree</h1>
<p>This email was sent from the <a href="[[++site_url]]">fred's Site</a></p>
<h2>Question or Comment</h2>
<p>[[+message]]</p>
<h2>Sender information</h2>
<p>
Name: [[+fname]] [[+lname]]
Email: [[+email]]
Phone: [[+phone]]
</p>
When I submit this code - I can fill in the fields press submit and I just get a blank version of the page on scren and no email is sent.
I have followed this path so far
STEP 1
I checked the SMTP settings on my MODX System Manager and they are
Authentification : Yes
Helo : blank
SMTP Hosts : just25.justhost.com
Keep Alive : No
Password : as per the account
Port : 465
Prefix : ssl
Single To : No
TimeOut : 10
user :
[email protected]
Use SMTP : yes
For completeness I am using
MODX : 2.3.1-pl
FormIt : FormIt 2.2.0
Host : Justhost.com
You will notice I had a redirect set - it didn't go to the redirect page (which does exist - triple checked the id every day for the last three days)
So I dumped the code into a chunk and called the chunk in the resource. Checked I got the same result (which I did ) and the put a "Im Here message after the chunk"
The message appeared but nothing else changed.
STEP 2
Downloaded Bob's QuickEmail snippet and put it in the content area of the resource. Ran it using [[!QuickEmail debug='1']]
I also ran it with [[QuickEmail debug=`1`]] as in Modx 2.3 seems to indicate that snippets are called without a !
Both types of call seemed to run for a minute then I go a screen back which was my blank content page (where the snippet was called in the content section)
STEP 3
We not sure really been working at this for a week now and I've nearly pulle whats left of my hair out
Any suggestions? If you need more info then please let me know.