L
L
LB7772015-04-03 10:03:41
1C-Bitrix
LB777, 2015-04-03 10:03:41

How to format an html email template in Bitrix?

In Bitrix, in the parameters of the mail template, you can select the type of message: text or HTML.
If everything is clear with the text, then with HTML the question arises:
Html block should be inserted in the form:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
  <title>Почтовый шаблон</title>
</head>
<body>
--==тело сообщения==--
</body>
</html>

Or can you omit this html and just write --==message body==-- with thml tags?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2015-04-03
@LB777

You can drop the html and write right away. I recommend converting pictures to base64. And use explicit styles (without classes) - we write styles right next to the tags

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question