Contact form line breaks

Creating and modifying plugins.
Post Reply
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Contact form line breaks

Post by Don Chambers »

I don't get much traffic from the contact form, but I just noticed that when the form is submitted, there are not line breaks between each field. IE, it used to be this:

Code: Select all

Field 1:  Field 1 value.
Field 2:  Field 2 value.
Field 3:  Field 3 value.
Now the submitted emails look like this:

Code: Select all

Field 1:  Field 1 value. Field 2:  Field 2 value. Field 3:  Field 3 value.
Can we restore the original behavior?
=Don=
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Contact form line breaks

Post by Timbalu »

Might this be a problem using nl2p instead of nl2br, Don?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Contact form line breaks

Post by Don Chambers »

Timbalu wrote:Might this be a problem using nl2p instead of nl2br, Don?
nl2br option "Use P-Tags" is set to "no". All other options set to "yes".
=Don=
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Contact form line breaks

Post by Timbalu »

Just tested mine with newest contactform plugin and everything is working smooth.
In your case it must be some sort of denied newline text parsing between POST and S9y email function or your email reader. But I really can't say where..., sorry
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Contact form line breaks

Post by yellowled »

Which email client are you using? Did you use a different one, a different version before? What do the headers of the email look like, especially Mime-Type, Content-Type and Content-Transfer-Encoding? If you have no idea what I am talking about or don't know how to find that out, feel free to forward me a copy of the email.

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Contact form line breaks

Post by garvinhicking »

Hi!

It could also be a change in your MTA (mail transfer agent,on the server). Some of them interpret windows-style linebreaks as no linebreaks, some of them require unix-linebreaks - it's a mess sometimes. :(

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply