[[!FormIt? &hooks=`email,redirect` &emailTpl=`FormitEmailChunk` &emailTo=`[email protected]` &emailFrom=`[email protected]` &redirectTo=`25` &submitVar=`submit` ]]
<br />[[+name]] ([[+email]]) wrote: <br /> [[+text]]
<h2>Contact Form</h2> <p>Please fill out the form if you wish to be added to the mailing list. And you can leave a message too if you like</p> [[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]] <form action="[[~[[*id]]]]" method="post" class="form"> <input type="hidden" name="nospam:blank" value="" /> <table> <tr><td> <label for="name"> Name (required): <span class="error">[[!+fi.error.name]]</span> </label> </td> <td> <input type="text" name="name" id="name" value="[[!+fi.name]]" /> </td> </tr> <tr> <td> <label for="email"> Email (required): <span class="error">[[!+fi.error.email]]</span> </label> </td> <td> <input type="text" name="email" id="email" value="[[!+fi.email]]" /> </td> </tr> <tr> <td> <label for="text"> Message (optional): <span class="error">[[!+fi.error.text]]</span> </label> </td> <td> <textarea name="text" id="text" cols="55" rows="7" value="[[!+fi.text]]">[[!+fi.text]]</textarea> </td> </tr> <tr> <td></td> <td> <input type="submit" name="submit" value="Send Contact Inquiry" /> </td> </tr> </table> </form> [[!FormIt? &hooks=`email,redirect` &emailTpl=`FormitEmailChunk` &emailTo=`[email protected]` &emailFrom=`[email protected]` &redirectTo=`25` &submitVar=`submit` ]]
Try placing the FormIt call before the form code, not after it.No change. (I had tried before but I just tried again.)
Is this on a live server or are you local ...It’s on a remote shared host with commercial hosting. They don’t have any rules against sending email afaik.
Try the installing the QuickEmail package. It will give you a quick test of whether the server’s email is working.
[2011-03-13 19:34:55] (ERROR @ /home/tgsketch/public_html/MODx/cranfordpetclub/core/cache/elements/modsnippet/22.include.cache.php : 81) PHP warning: stristr() [<a href='function.stristr'>function.stristr</a>]: Empty delimiter
If you didn’t get an email from QuickEmail when it reported success (check your spam folder), it’s likely that something is wrong with the email system at your host -- or they’re blocking your emails for some reason.