O
O
Oleg Korolenko2018-09-12 16:20:43
PHP
Oleg Korolenko, 2018-09-12 16:20:43

Wrong email headers?

$header = 'MIME-Version: 1.0'.PHP_EOL;
$header .= 'From: =?UTF-8?B?0KPQutGA0YHQtdGA0LLQuNGB?=<[email protected]>'.PHP_EOL;
$header .= 'Reply-To: =?UTF-8?B?0KPQutGA0YHQtdGA0LLQuNGB?=<[email protected]>'.PHP_EOL;
$header .= 'Return-Path: [email protected]'.PHP_EOL;
$header .= 'X-Mailer: PHP/5.4.45'.PHP_EOL;
$header .= 'Content-Type: multipart/mixed; boundary="7d6fb4c7db5d29bd0be3fea7426822e8"'.PHP_EOL.PHP_EOL;

Warning: mb_send_mail(): Multiple or malformed newlines found in additional_header in /home/ukrser2/e-ukrservice.com/www/test.php on line 24
error

What is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Korolenko, 2018-09-22
@legoex

There was a problem with the mbstring.func_overload value.

D
Dmitry Shitskov, 2018-09-12
@Zarom

Multiple ... newlines found in additional_header

$header .= 'Content-Type: multipart/mixed; boundary="7d6fb4c7db5d29bd0be3fea7426822e8"'. PHP_EOL.PHP_EOL;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question