When sending letters to PHP, unwanted characters such as = and 3D appear on the receiver

When I tried to send letters to PHP, I could see that unwanted characters like "=" and "3D" appear in the content.

This is part of the mail header.

From: Reply-To: To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 

I am posting some examples of the problem:

1) original content:

 ============= 

At the end of the receiver, it becomes:

 =3D=3D=3D=3D=3D=3D=3D=3 

2) Source text:

 Algeria 

Receiver Endpoint:

 Alger= ia 

Can someone help me find the exact question or has anyone experienced similar problems

+4
source share
2 answers

This is a perfectly normal quotation mark encoding. Perhaps you forget to mention in the headers that the message is encoded in quotation marks.

+3
source

I had a similar problem a while ago. I think it turned out that the line you send as your body is too long, you may run into problems. I used the phpmailer library. I used

$ mail-> Encoding = 'base64';

to get around the problem. I sent html letters, but not plain text.

I don’t know which version of PHP you are using, but check if your problem is <magic quotes'.

+1
source

Source: https://habr.com/ru/post/1399614/


All Articles