A
A
Azat20152016-07-29 15:32:26
PHP
Azat2015, 2016-07-29 15:32:26

How to make wp-mail.php in wordpress handle long email subject lines correctly?

In wordpress, it is possible to publish articles by sending an email to a configured email inbox. wp-mail.php script. So he cuts off the long title from the subject field - it processes only the first line from the field, for example from

Subject: =?utf-8?B?0L7Rh9C10L3RjCDQtNC70LjQvdC90LDRjyDRgtC10LzQsCDRgSDRgNCw0LfQvQ==?=
  =?utf-8?B?0YvQvNC4INCx0YPQutCy0LDQvNC4INC4INGB0LvQvtCy0LDQvNC4INC60L7Rgg==?=
  =?utf-8?B?0L7RgNCw0Y8g0L7QsdGA0LXQt9Cw0LXRgtGB0Y8=?=

only
?utf-8?B?0L7Rh9C10L3RjCDQtNC70LjQvdC90LDRjyDRgtC10LzQsCDRgSDRgNCw0LfQvQ==?=

What can I do to get the subject of the email processed correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ommunist, 2016-08-10
@Azat2015

No way. RFC 2822 has a 78 character limit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question