The following sender information I get in every newsletter and I realy dont understand why:

From: =?UTF-8?B?Ij0/VVRGLTg/Qj9Rc084Y21kbGNtbHVhWFJwWVhScGRtVWdZbVZrYVc1bmRXNW4=?=@mail.server-testt.de,
=?UTF-8?B?YzJ4dmMyVnpJRWR5ZFc1a1pXbHVhMjl0YldVPT89CiA9P1VURi04P0I/Ymc9PT8=?=@mail.server-test.de,
=?UTF-8?B?PSIgPHJhbHBoYm9lc0BmcmVlbmV0LmRlPg==?=@mail.server-test.de

Does sombody have an idea how to fix this?

Comments

xxm’s picture

If I take off line 253 in includes/unicode.inc of the function function mime_header_encode() the sender information is ok

246 function mime_header_encode($string) {
247 if (preg_match('/[^\x20-\x7E]/', $string)) {
248 $chunk_size = 47; // floor((75 - strlen("=?UTF-8?B??=")) * 0.75);
249 $len = strlen($string);
250 $output = '';
251 while ($len > 0) {
252 $chunk = truncate_utf8($string, $chunk_size);
253 $output .= ' =xxxUTF-8?B?'. base64_encode($chunk) ."?=\n";
254 $c = strlen($chunk);
255 $string = substr($string, $c);
256 $len -= $c;
257 }
258 return trim($output);
259 }
260 return $string;
261 }

But only with simple news this fault exist, not with the contact form for example.

But why?

xxm’s picture

Does nobody have an idea to solve the foult?

sutharsan’s picture

Please provide more information!
Upgrade to 5.x-1.5-dev first.
Does this happen with *all* email send from this website or just simplenews?
Can you reproduce this with only simplenews enabled and all other mail related modules disabled?
Does this happen on one email client only or across various programs?

xxm’s picture

Upgrade to 5.x-1.5-dev first.
I did.
Does this happen with *all* email send from this website or just simplenews?
Only with simple news.

Can you reproduce this with only simplenews enabled and all other mail related modules disabled?
Yes

Does this happen on one email client only or across various programs?
On every email client.

Now I'v seen it only seem to happen when ö,ü or ä ist used in the title.

Any idea why it happens with the germen letters?

Leiph’s picture

Don't know if this related to your problem, but anyhow:

I had a similar issue with a complete different module, the News Aggregator. It turned out to be a mismatch in the PHP settings for Swedish characters. I had to switch from an USA-based host to a European based one.

/Leiph

sutharsan’s picture

Status: Active » Closed (won't fix)

Probably simplenews is the only email module you use that encodes the from address. It was introduced with this issue: #238735: Header's "From:" field isn't encoded in simplenews mail engine The encoding is correct and will not be removed. The cause of the problem is likely to be server related. Contact your host to see if their server supports outbound UTF-8 encoded email headers, the from-name to be precise.