Hi,
Did you put it in a section called "[special_fields]"?
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
Hello,
Figuring stuff out well. One question so far though...
My server sends my form result emails from Nobody as a result of deriving my email setting.
I can fix this by putting this in the form:
<input name="mail_options" type="hidden" value="FromAddr = me@mydomain.com">
However! I have grown fond of the ini file and was curious how i would put it in there.
I tried:
mail_options = "FromAddr = me@mydomain.com"
but it's a no go.
Hi,
Did you put it in a section called "[special_fields]"?
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Hello,
Yes I did. I am using PHP 4.4.4, not sure if that is important because the standard layout seems to be working for me.
[special_fields]
recipients = "my@recipientemail.com"
required = "Full_Name:Your Full Name,Email_Address:Email Address,imgverify:Image Verification"
subject = "My Site - Order Submission"
good_url = "http://www.mysite.com/template/thankyou.htm"
bad_url = "http://www.mysite.com/fmbadhandler.php"
bad_template = "http://www.mysite.com/template/error.htm"
this_form = "http://www.mysite.com/order.php"
deriver_fields = "email = Email_Address"
Hi,
Your mail_options should work in this section in the INI file.
This should go in the HTML not in the INI file. It will work in the INI, but it's just the wrong place for it.this_form = "http://www.mysite.com/order.php"
Typo: derive_fields not deriver_fieldsderiver_fields = "email = Email_Address"
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Ok
Ya sorry for the typo. Ok i'll try it again.
The reason i hid the location of my form is for security reasons.
I'm still not sure where exactly i should save my form and ini files. Should they be located above the public_html folder or are they fine in there?
Thanks, great script.
Nope, mail_options doesn't seem to work for me in the ini file.
It does for you?
Hi,
No, it looks like there's an issue with mail_options in the INI file. This will be fixed in a later version.
In the meantime, following the HOW TO guide to achieve what you want.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
I realize now that the gibberish i was talking about hiding my form for security was just a link back to my form lol...![]()
I spent the greater part of 2 days trying to absorb the form creation process.
Well, i know it's the wrong place to ask, but could you answer the question regarding where the formmail.php and ini files should be saved?
Should i save them one step above the public_html folder or put them in the public folder? Just curious if someone could do something harmful if they are in the public folder or not.
Currenty i have created an .htaccess with the following to block the ini file though:
<files *.ini>
order deny,allow
deny from all
</files>
Thanks
Hi,
FormMail must be in public_html or lower.
The INI file can be anywhere that it is protected from web access.
Using .htaccess to protect it is fine.
The only harmful thing anyone can do is see what's in there and using that informatin in some way (e.g. send spam to your email address).
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks