PHP Mail_mime adding backward slash in the content

50 Views Asked by At

I am upgrading my PHP code from 5.2 to 7.3.

For creating email mime , I have using the PEAR library Mail_mime (https://github.com/pear/Mail_Mime).

After integrating the latest version, I am facing a strange issue where the backward slash (\) is getting added randomly.

eg:

From: "George B@@Z"<[email protected]> is getting changed to 
From: "\"George" B@@Z"<[email protected]>

"Abel Thomas" <[email protected]> is getting changed to
 "Abel\ Thomas" <[email protected]>

This did not happen in the older version of the library.

Any lead to the possible solution is appreciated.

0

There are 0 best solutions below