A
A
Alexander Karpov2017-10-27 16:22:53
linux
Alexander Karpov, 2017-10-27 16:22:53

Why does base64 get corrupted inside an email?

I can't figure out why an email with a base64 string in img is sent correctly from one server, but not from another server.
Here is an example of the difference, a snippet of a line
from a working example:
Izj8KyUbSSYQ8zFtbK5c5e1dZtwby25WRe4yPx4Oc5qy9y91mEh
in an email where base64 got corrupted:
Izj8KyUbSSYQ8zFtbK5c5e1dZtwby25WRe4yPx4Oc5qy!
9y91mEh

Note that the character "!"
Why is this happening? Input data (i.e. the string itself that is generated by base64_encode in PHP is correct)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-10-27
@Inkognitoss

And the letter is initially correctly generated?
RFC 2045

6.8. Base64 Content-Transfer-Encoding
The encoded output stream must be represented in lines of no more than 76 characters each.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question