Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 04-04-2011 04:34:28

duceduc
Members
From: Japan
Registered: 25-05-2010
Posts: 359

email sent from contact form has no line break

Something happened down the line as I was editing the script not related to the contact page. Now, emails come in with no <br/> between each return lines. Can you tell me what files are associated with having line breaks for the contact page?

I've replaced the functions file in the inc folder but it doesn't do anything. Are there any other files I should be looking at?

Also, emails that are received in asian text(japanese) come in as 㠂り㠌㠨㠆。 ゠㠟㠗㠮㠊㠪㠾㠈㠯ダック㠧㠙。.

How can this be fix? Thanks again.

Last edited by duceduc (04-04-2011 05:36:57)

Offline

#2 05-04-2011 05:40:05

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,074

Re: email sent from contact form has no line break

Line 285 in the index file:

$comments

Change to:

nl2br($comments)

For the garbled code, try opening the 'classes/class_mail.inc.php' file and changing:

$headers = "Content-type: text/html; charset=iso-8859-1\r\n";

to

$headers = "Content-type: text/html; charset=utf-8\r\n";


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 05-04-2011 06:14:36

duceduc
Members
From: Japan
Registered: 25-05-2010
Posts: 359

Re: email sent from contact form has no line break

Thanks again.

Offline

#4 05-04-2011 07:21:07

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,074

Re: email sent from contact form has no line break

No problem.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy