{"id":9445,"date":"2021-01-27T18:32:56","date_gmt":"2021-01-27T23:32:56","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=9445"},"modified":"2021-01-27T18:32:56","modified_gmt":"2021-01-27T23:32:56","slug":"sending-html-mail-with-mu4e","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=9445","title":{"rendered":"Sending HTML Mail With Mu4e"},"content":{"rendered":"<p>Like all right thinking people, I abhor HTML emails but that\u2019s a ship that sailed long ago and there\u2019s not much choice other than grudging acceptance. The virtuous can, of course, continue to send plain text but sometimes your content or recipient really does need HTML. And truth be told, I often wish I could add some simple formatting like italics or bold.<\/p>\n<p>David Wilson over at the <a href=\"https:\/\/www.youtube.com\/channel\/UCAiiOTio8Yu69c3XnR7nQBQ\">System Crafters YouTube Channel<\/a> has an excellent video on <a href=\"https:\/\/www.youtube.com\/watch?v=aml36yZ-ANc&amp;feature=emb_logo\">sending HTML with mu4e<\/a>. The TL;DR is that you use <a href=\"https:\/\/github.com\/org-mime\/org-mime\">org-mime<\/a> to create a multipart email with plain text and HTML versions of your message. That\u2019s pretty nice but the real win is using Org-mode to compose your emails. That lets you use the usual markup for things like bold and italics, add headers and links and all the other nice things that Org offers. Wilson\u2019s video explains how to do all this and a couple of other things as well.<\/p>\n<p>Sadly, this addresses only half the problem. The other side is rendering HTML messages that you receive. You\u2019ve got eww but that often doesn\u2019t work satisfactorily with emails. You can ask mu4e to display a message in your browser but then you\u2019re leaving Emacs.<\/p>\n<p>This is a good video and definitely worth watching. It runs 29 minutes, 12 seconds so you\u2019ll have to schedule some time but if you\u2019re a mu4e user you should definitely spend that time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like all right thinking people, I abhor HTML emails but that\u2019s a ship that sailed long ago and there\u2019s not much choice other than grudging acceptance. The virtuous can, of course, continue to send plain text but sometimes your content &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=9445\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18,4],"class_list":["post-9445","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs","tag-org-mode"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9445"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9445\/revisions"}],"predecessor-version":[{"id":9446,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9445\/revisions\/9446"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}