Answer the question
In order to leave comments, you need to log in
How to send an HTML email?
There is a drafted letter that needs to be sent to certain addresses, but there is no information at all on how to do it.
I looked in gmail for how to do this, but couldn't find it.
Answer the question
In order to leave comments, you need to log in
On the example of Google Chrome
1) Press [right click]>[View element code] or F12
2) In the developer tool that opens in the code of the current page (gmail), find where to insert the email code and press [right click]>[Edit as HTML]
3 ) Paste your HTML code and press Ctrl+Enter
there is also the sendhtmail.ru service , you send a letter to yourself, and then you redirect it to the right place from the usual interface.
It is possible through php. $headers = "Content-type: text/html; charset=utf-8\r\n"; This is the header I use for my email. Function mail("send to", "Send subject", "Send text including tags", $headers); Again, at the same time, a server with php should be at hand.
UPD. I see that even after more than 3 years the question is still relevant. There is a putsmail.com service for testing emails.
Open the email as HTML in the browser, then Ctrl+A, Ctrl+C, start a new email in Gmail and paste Ctrl+V there.
There are chances that even the layout will not warp. It's better to send yourself the first one, check how it will look
1. some email programs allow you to edit html.
for example, mozilla thunderbird has a menu item insert > html.
2. use any mailing service, for example, smartresponder.ru or mailchimp.com.
create a template > paste your code there > check > send it to the list.
Use a service like getresponse.com or smartresponder.ru - they allow you to upload your own html templates.
Download mozilla thunderbird. You create a letter. Then you select the insert item, then the HTML item and paste your mailing code there.
Look, about thunderbird, I inserted HTML, the code outputs - everything is cool. Only the pictures do not show, it is logical that I only added the code, but can I add some other pictures?
It's not entirely clear what you need. But you can pass the text of the letter via a link so that the user sends it himself.
<a href="mailto:[email protected]?subject=Заголовок&body=сообщение">Отправить письмо</a>
You can use MailApp in Google Apps Script. Gmail engine will be used for sending.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question