V
V
Vitaly Rybchenko2017-10-31 14:03:54
HTML
Vitaly Rybchenko, 2017-10-31 14:03:54

What's wrong with the html message?

Hello!
Faced a strange problem - outlook does not read the letter headers stably.
There are 2 versions of the letter that the website sends. Both letters are built according to the same template:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html style="width:100%">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body style="margin:0;background:#f7f7f7;width:100%">
тут содержимое письма
</body></html>

In the first case, the letter is read immediately in utf-8, and in the second, it tries to read in KOI8-R.
The only difference between the letters is that in the second case I take the values ​​from the url string (Last Name type) and pass them to the letter.
How to treat it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Rybchenko, 2017-10-31
@biovr

The problem turned out to be that some of the information was read from the URL. I started writing this information on the page, and when sending it, reading it from the page - the problem with the encoding was solved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question