Error in imap_qprint

Asked

Viewed 86 times

0

Does anyone know why you made a mistake when you use imap_qprint.

$body = imap_qprint(imap_body($mailbox,$i));

Notice: Unknown: Invalid quoted-printable Sequence: ="UTF-8" Content-Transfer-Encoding: quoted-printable Ol=C3=A1, searched by 13 (errflg=3) in Unknown on line 0

  • I tried to use utf8 in the header but it didn’t help. Help there guys.

1 answer

1


Change:

$body = imap_qprint(imap_body($mailbox,$i));

For:

$body = quoted_printable_decode(imap_body($mailbox,$i));

I think the only difference is that the quoted_printable_decode does not need the module of the imap and maybe that’s why he ignores the type of "charset" defined in the message.

Note: The "mistakes" that begin with Notice: are not errors in fact, but rather a warning only, it only emits it when all kinds of error are on (see E_ALL), on production servers is very likely not to display (and nor should).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.