Hi,
Your tests seem to indicate that the joining has nothing to do with the contents of the fields.
I guess you're not using a template (HTML or Plain).
So, I wonder what you have for BODY_LF?
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
Hello. A problem has appeared in a form that I do not know how to resolve.
If I have a form field:
<input name="nominee_category" type="radio" value="EXCELLENCE IN CASE/QUALITY MANAGEMENT; MANAGED CARE">
The semicolan causes the email output of formmail to go crazy, wrapping all output onto one line; like this:
nominee_category: EXCELLENCE IN CASE/QUALITY MANAGEMENT; MANAGED CARE nominee_name: nominee_job_title: nominee_org: nominee_credentials: nominee_work_address: nominee_mailing_address: nominee_day_phone: nominee_resident: Yes nominated_by: nominated_by_org: nominated_by_address: nominated_by_day_phone: nominated_by_fax: nominated_by_email: Submit: Send
The same seems to happen if I use:
<input name="nominee_category" type="radio" value="EXCELLENCE IN CASE/QUALITY MANAGEMENT OR MANAGED CARE">
or...
<input name="nominee_category" type="radio" value="EXCELLENCE IN CASE/QUALITY MANAGEMENT AND MANAGED CARE">
This seems an escaping problem, but do not know how to resolve it. Any help would be appreciated.
I should say that I am using formmail 5.03, php 5.0.3. Using HTML encoding on the semicolon does not seem to help either.
Last edited by hpinson; 23-Mar-2005 at 01:15 AM.
Hi,
Your tests seem to indicate that the joining has nothing to do with the contents of the fields.
I guess you're not using a template (HTML or Plain).
So, I wonder what you have for BODY_LF?
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Ah-- brilliant.
BODY_LF is set to the default: define("BODY_LF","\r\n");
I changed it to: define("BODY_LF","\r\n\n");
Which both solved the problem, and made the output more readable as well, by placing a space between lines in the output mail.
Thanks!
Spoke to soon. The above modification fixes the problem with special characters, but breaks email attachments-- attachments are converted to text for some reason from binary.
Hi,
Put BODY_LF back the way it was.
Now, use a different email client to view the emails you get.
Use Microsoft Outlook or a web-based email client.
I suspect you'll find that the lines don't run together.
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