Welcome Guest, Not a member yet? Register   Sign In
n character added in html emails
#1

[eluser]iamronen[/eluser]
I am trying to send html emails.

The email class is initiated via a config file which contains:
Code:
$config['protocol'] = 'sendmail';
    $config['mailtype'] = 'html';
    $config['newline'] = "\n";
    $config['crlf'] = "\n";

The message is created with a jquery-based rich text editor. The output is clean html and is stored in a database. The test message is:


Code:
<p>
this is the first line</p>
<p>
this is the secon dline</p>
<p>
and this is the third line</p>

and the resulting message:

n this is the first line
n

n this is the secon dline
n

n and this is the third line
n

I've tried using \r\n instead and it doesn't make any difference.

Any ideas would be greatly appreciated.


Messages In This Thread
n character added in html emails - by El Forum - 06-16-2012, 03:43 AM
n character added in html emails - by El Forum - 06-16-2012, 04:43 AM
n character added in html emails - by El Forum - 06-16-2012, 06:04 AM
n character added in html emails - by El Forum - 06-16-2012, 07:03 AM
n character added in html emails - by El Forum - 06-16-2012, 10:01 AM
n character added in html emails - by El Forum - 06-16-2012, 10:05 AM
n character added in html emails - by El Forum - 06-16-2012, 10:32 AM
n character added in html emails - by El Forum - 06-16-2012, 12:13 PM
n character added in html emails - by El Forum - 06-16-2012, 09:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB