Hi,
The very first thing is to ensure you have DEF_ALERT set and it's working (use testalert feature) so that FormMail can tell you about errors.
There are 4 steps to getting templates to work:That's it.
- Create a folder (directory) on your server to hold the templates. Make sure the folder is readable and searchable. On Linux this would be mode rwxr-xr-x or 755. Find out the path of the folder. You can use the "testalert" feature of FormMail to assist or ask your hosting provider.
- Put the path of the folder in the $TEMPLATEDIR setting in FormMail.
- Upload your template file to the folder.
- Use PlainTemplate=filename.txt in the "mail_options" hidden field inside your HTML.
If you've done all these steps and and still cannot get it to work, please send me access details to your server using this secure form:
https://secure.rootsoftware.com/~tectite/sendsecret.php
Yes, if you're going to use templates then that's the simplest way.
You really don't want to change the From field. This is important for mail delivery.
If you want to set the Subject of the email, use "mail_options".
This documentation will assist:
http://www.tectite.com/fmdoc/creating_forms.php
OK. There is a post somewhere that shows the right conditions for email validation. But if you've like to post the conditions field you currently have, I'll post back the required change to it.


Reply With Quote

Bookmarks