Hello There!
I am very pleased to say that the form is working well now. Somehow I must have messed up the code on my first attempt. Thanks for you addressing my problem... and being patient with meI bet you get tired of us newbies.
Randy
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
This HOW-TO guide explains how to use the new PlainTemplate mail_options feature in version 3.00 of FormMail.
It's been installed on our main website, click to view it now.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Hello There!
I am very pleased to say that the form is working well now. Somehow I must have messed up the code on my first attempt. Thanks for you addressing my problem... and being patient with meI bet you get tired of us newbies.
Randy
Hi Randy,
Thanks for letting us know.
We love newbies.
We particularly love newbies who try hard to find the answer themselves and read all the doco. That helps everyone.
Servers are tricky things though, and lots of them don't do the right thing. That's why we've got these forums as a resource for everyone who comes along.
Post a question if you need anything else.![]()
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Hallo,
I'm new to FormMail, but got everything working so far. My question is "cosmetical". The plain template sends all the data in the specified order but unfortunately without line breaks. All the information is added in behind each other.
What do I have to add to remedy that. I would prefer to do without html templates.
Thank you very much in advance!
Hi,
This could be a server compatibility problem.
Look in the configuration section of FormMail for the BODY_LF setting.
If it looks like this:
Then that's not the issue.PHP Code:define("BODY_LF","\r\n"); // the new default: use this for CR+LF
Perhaps you're referring to TEXTAREA fields. In this case, you simply need to tell FormMail to keep the line breaks, by adding this to your HTML form:
If you already have a "mail_options" field, just add "KeepLines" to the end of the value (with a preceding comma).Code:<input type="hidden" name="mail_options" value="KeepLines" />
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Thank you very much for the quick answer.
my code DID look like this:
define("BODY_LF","\r\n"); // the new default: use this for CR+LF
when I put it to the old value:
define("BODY_LF","\n"); // the old default: just LF
it worked fine.
The TEXTAREA unfortunately does not keep the line breaks, even though I included the KeepLines:
<input type="hidden" name="mail_options" value="PlainTemplate=plain.txt,TemplateMissing=n/a,KeepLines" />
This issue is not so VERY important. But if you have a solution I would be grateful for it
Inka
Hi,
Put this back the way it was:
Do the lines stay there now in your TEXTAREAs?PHP Code:define("BODY_LF","\r\n"); // the new default: use this for CR+LF
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Hallo,
no, like this the whole email contains no line feed at all!
It must be a server problem, since I tested the script on another server and it works just fine.
Anyway - THANKS for your help!
Inka
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks