confirmation mail looks bad

Hi,
every confirmation mail sent out after a user registered to a list looks weird.
It starts with text information like this:
Mime-Version: 1.0
From: "xxxx" <[email protected]>
Date: Sun, 26 Apr 2015 09:29:32 +0200
X-Mailer: PHP/5.2.12
Content-Type: text/plain; charset=utf-8; Format=flowed
Content-Transfer-Encoding: quoted-printable

=EF=BB=BFGuten Tag,
...
What's wrong?
 
I found the solution.
In the lm_functions.php I modified the SendMessage function.
At the end I added
Code:
		$headers = str_replace( "\r\n", "\r", $headers ); // Replace all '\r\n' with '\r' in $headers

Also the template files were wrong. They were utf-8 encoded which results in some trouble later on. I saved them in Western (Mac OS Roman) format because in the sendmail function all text ist converted back to utf-8 again.

Now the mail looks great, links for confirmation are working, so that's fine.

Last problem which I could not resolve: the sender of the mail should appear as the company name. Instead the name is "Apache user", I could not found where this is coming from.
 

stanbusk

Administrator
Staff member
The Sendmessage function uses the PHP mail() command. The sender address is included in the headers. The headers are set to:
Code:
$headers = "From: \"$admin_name_full\" <$admin_address>";
where $admin_name_full and $admin_address are defined in lm_settings.php
 
Top