O
O
Oleg Polyakov2017-10-27 14:02:22
Email
Oleg Polyakov, 2017-10-27 14:02:22

Email from html vs pdf?

There is a laid-out html-version of the receipt.
What is the best way to send it to the user? What will be more convenient with t.z. user?
There are some nuances with the translation to tabular layout - so that the letter is displayed both in the mail web interface and in mail clients.
Creating a pdf is a little more difficult, but here at least I'm sure that it will look about the same for all users. But it downloads, opens with another application.
Accordingly, the question is, which of this (html or pdf) is it more expedient to make? Taking into account user-friendliness and device statistics.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2017-10-27
@saboteur_kiev

Send receipt in HTML, with PDF attached - the most versatile option.
A modern, up-to-date PDF is far from a picture, so the size of a receipt will not be that big. But the receipt will arrive intact.
HTML in different email clients can go unpredictably. Up to the point that no matter how hard you try, some columns in the table simply will not be displayed. There are many mail clients, the way they implement HTML support is unpredictable. You can read on Habré there were a couple of articles on how to properly type HTML for emails. But for strict reporting documents (receipts) that are sent not within the company, but to different users whose email clients you do not control, it is better to duplicate the PDF with an attachment.

O
Oleg Polyakov, 2017-10-27
@challenger1401

For me, too, pdf is more convenient.
But what about the guys who can't install other apps at work? Or can they be ignored?

A
Alexander Chernykh, 2017-10-27
@sashkets

for receipts-pdf
html - if you need to put a link in the body of the letter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question