Title: PHP 8 encoding issue
Last modified: June 1, 2023

---

# PHP 8 encoding issue

 *  Resolved [mcbence](https://wordpress.org/support/users/mcbence/)
 * (@mcbence)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-encoding-issue/)
 * Hi!
 * Thanks for the great plugin.
    I run into an encoding problem when switching to
   PHP 8.0 or 8.1. I’ve tried different hosts with same result. The received test
   email looks like this:
 *     ```
       --=_84ae9e2868aa598943008e6501d25401
       Content-Type: text/plain; charset=UTF-8
       Content-Transfer-Encoding: quoted-printable
   
       Hello!=0D=0DSent by Postman 2.1.3 - https://wordpress.org/plugins/post-s=
       mtp/=0D=0D
   
       --=_84ae9e2868aa598943008e6501d25401
       Content-Type: text/html; charset=UTF-8
       Content-Transfer-Encoding: quoted-printable
   
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w=
       ww.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">=0D<html xmlns=3D"http:=
       //www.w3.org/1999/xhtml">=0D<head>=0D<meta http-equiv=3D"Content-Type" c=
       ontent=3D"text/html; charset=3Dutf-8" />=0D<style type=3D"text/css" medi=
       a=3D"all">=0D.wporg-notification .im {=0D=09color: #888;=0D} /* undo a G=
       Mail-inserted style */=0D</style>=0D</head>=0D<body class=3D"wporg-notif=
       ication">=0D=09<div style=3D"background: #e8f6fe; font-family: & quo=
       t; Helvetica Neue&quot; , Helvetica ,Arial,sans-serif; font-size: 14=
       px; color: #666; text-align: center; margin: 0; padding: 0">=0D=09=09<ta=
       ble border=3D"0" cellspacing=3D"0" cellpadding=3D"0" bgcolor=3D"#e8f6fe"=
       =09style=3D"background: #e8f6fe; width: 100%;">=0D=09=09=09<tbody>=0D=09=
       =09=09=09<tr>=0D=09=09=09=09=09<td>=0D=09=09=09=09=09=09<table border=3D=
       "0" cellspacing=3D"0" cellpadding=3D"0" align=3D"center" style=3D"paddin=
       g: 0px; width: 100%;"">=0D=09=09=09=09=09=09=09<tbody>=0D=09=09=09=09=09=
       =09=09=09<tr>=0D=09=09=09=09=09=09=09=09=09<td>=0D=09=09=09=09=09=09=09=
       =09=09=09<div style=3D"max-width: 600px; height: 400px; margin: 0 auto;=
        overflow: hidden;background-image:url('https://ps.w.org/postman-smtp/as=
       sets/email/poofytoo.png');background-repeat: no-repeat;">=0D=09=09=09=09=
       =09=09=09=09=09=09=09<div style=3D"margin:50px 0 0 300px; width:300px; f=
       ont-size:2em;">Hello! - 你好 - Bonjour! - नम&#23=
       60;्ते - =C2=A1Hola! - Olá - Пр&#1080=
       ;вет! - 今日は</div>=0D=09=09=09=09=
       =09=09=09=09=09=09=09<div style=3D"text-align:right;font-size: 1.4em; co=
       lor:black;margin:150px 0 0 200px;">Sent by Postman 2.1.3=0D=09=09=09=09=
       =09=09=09=09=09=09=09=09<br/>=0D=09=09=09=09=09=09=09=09=09=09=09</div>=
       =0D=09=09=09=09=09=09=09=09=09=09</div>=0D=09=09=09=09=09=09=09=09=09</t=
       d>=0D=09=09=09=09=09=09=09=09</tr>=0D=09=09=09=09=09=09=09</tbody>=0D=09=
       =09=09=09=09=09</table>=0D=09=09=09=09=09=09<br><span style=3D"font-size=
       :0.9em;color:#94c0dc;">Image source: <a style=3D"color:#94c0dc" href=3D"=
       http://poofytoo.com">poofytoo.com</a> - Used with permission</span>=0D=
       =09=09=09=09=09</td>=0D=09=09=09=09</tr>=0D=09=09=09</tbody>=0D=09=09</t=
       able>=0D</body>=0D</html>
   
       --=_84ae9e2868aa598943008e6501d25401--
       ```
   
 * Any ideas? Am I missing to enable some apache modules?
 * Thanks for your reply in advance!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-encoding-issue/#post-15867209)
 * Hi [@mcbence](https://wordpress.org/support/users/mcbence/)
 * Hope you are doing good.
 * Please download this Beta version from [here](https://downloads.wordpress.org/plugin/post-smtp.2.1.4-rc.2.zip)
   and test it and let me know if this issue is still exist.
 * Thanks
 *  Thread Starter [mcbence](https://wordpress.org/support/users/mcbence/)
 * (@mcbence)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-encoding-issue/#post-15872833)
 * Thanks. I gave a try to beta version before writing this post, but did not help.
 * You are right, reverting PHP is the only option, but I’m facing this issue on
   many sites for months now. This is the only reason I can not upgrade PHP, but
   I feel like time has came to ugrade soon.
 * I was just curious if any solution is on the way. Probably looking in the code
   and finding a fix would worth it, but I’m very busy now.
 * Thanks anyway. I’ll probably look into this issue next week.
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-encoding-issue/#post-15880695)
 * [@mcbence](https://wordpress.org/support/users/mcbence/) our team is looking 
   into this issue and will share updates soon.
 * Thanks
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-8-encoding-issue/#post-15958471)
 * We haven’t heard from you so we’re going to mark this thread as resolved. Feel
   free to open a new one if you need it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP 8 encoding issue’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

## Tags

 * [headers](https://wordpress.org/support/topic-tag/headers/)
 * [newline](https://wordpress.org/support/topic-tag/newline/)

 * 5 replies
 * 11 participants
 * Last reply from: [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/php-8-encoding-issue/#post-15958471)
 * Status: resolved