{"id":7425,"date":"2021-10-17T06:42:49","date_gmt":"2021-10-17T06:42:49","guid":{"rendered":"https:\/\/max-drake.cc\/?p=7425"},"modified":"2021-10-18T22:04:38","modified_gmt":"2021-10-18T22:04:38","slug":"maxlauncher-sending-emails-in-thunderbird","status":"publish","type":"post","link":"https:\/\/max-drake.cc\/?p=7425","title":{"rendered":"MaxLauncher &#038; sending emails in Thunderbird with mailto:"},"content":{"rendered":"\n<p>I&#8217;ve just spend a few hours trying to figure out a hotkey script to send emails at a touch of a MaxLauncher key to Thunderbird. <\/p>\n\n\n\n<p>My initial objective is to have a DEFAULT sender address,  a set TO  email ( I can have multiple buttons for different addressee&#8217;s if they are common or just a blank one, and then to land in the Subject box so that I could start the email. <\/p>\n\n\n\n<p>A later requirement will be to give different signatures to the emails from a selection, maybe different buttons on MaxLauncher <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Selecting the FROM email address <\/h2>\n\n\n\n<p>The issue was making  sure they all came FROM the same account. In Thunderbird if you have your cursor on a different account (I have multiple accounts in Thunderbird ) and then hit Write button to create a new email, it will send it from the account you have highlighted. <\/p>\n\n\n\n<p>I wanted to ensure that they all came FROM the same account, so I had a DEFAULT setup and could alter it if I wanted. <\/p>\n\n\n\n<p>Thunderbird has <a rel=\"noreferrer noopener\" href=\"https:\/\/support.mozilla.org\/en-US\/kb\/keyboard-shortcuts\" target=\"_blank\"><strong>shortcut keys<\/strong><\/a> but they are fixed and some of them toggle rather than go to a definitive place. <\/p>\n\n\n\n<p>My first effort was to activate Thunderbird and then on a new email( Ctrl+m) go to FROM and write in the sender address. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">New message Shift Tab to FROM &#8211; not successful<\/h4>\n\n\n\n<p>As soon as it starts a new email it goes to the TO cell, and it already has a FROM based on which folder account you are in already.  So you have to do Shift+Tab to go back 4 times to get to the FROM tab, then CLICK then use UP arrow a few times, to make sure you are in the first email address. <\/p>\n\n\n\n<p>I couldn&#8217;t get that to work reliably at all. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"917\" height=\"583\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird.jpg\" alt=\"\" class=\"wp-image-7427 lazyload\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird.jpg 917w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-300x191.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-768x488.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-50x32.jpg 50w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-79x50.jpg 79w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-100x64.jpg 100w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-157x100.jpg 157w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-640x407.jpg 640w\" data-sizes=\"(max-width: 917px) 100vw, 917px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 917px; --smush-placeholder-aspect-ratio: 917\/583;\" \/><\/figure>\n\n\n\n<p>I found I could use Alt+R to get to the From Field, and even with Click and send {up 4} I still couldn&#8217;t ensure the correct FROM consistently. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Start in correct Folder then send message- no joy<\/h4>\n\n\n\n<p>Next, I wanted to go to the Folder column that lists all the accounts and their folders on the left but I could only use a toggle key, so I could be in the top right hand panel, the bottom right hand panel or the right panel. <\/p>\n\n\n\n<p>So depending on where you start you&#8217;d need to toggle the key a different amount of times. <\/p>\n\n\n\n<p>I wanted to be on the Left panel and then go to the top and then use the top email address. So I couldn&#8217;t get that reliably<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"843\" height=\"1024\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-843x1024.jpg\" alt=\"\" class=\"wp-image-7426 lazyload\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-843x1024.jpg 843w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-247x300.jpg 247w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-768x933.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-1265x1536.jpg 1265w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-50x61.jpg 50w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-41x50.jpg 41w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-100x121.jpg 100w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-82x100.jpg 82w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-527x640.jpg 527w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-640x777.jpg 640w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-632x768.jpg 632w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-1024x1244.jpg 1024w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-889x1080.jpg 889w, https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_15_37-Starred-max.s.drake@gmail.com-Mozilla-Thunderbird-scaled.jpg 1318w\" data-sizes=\"(max-width: 843px) 100vw, 843px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 843px; --smush-placeholder-aspect-ratio: 843\/1024;\" \/><\/figure>\n\n\n\n<p>So no success. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Plugins?<\/h3>\n\n\n\n<p>I looked at plugins to Thunderbird that would allow me to alter hotkeys or make ones that would help me in what I was doing.  I didn&#8217;t want to go down that path initially, as I&#8217;d have to configure it for 3 PC&#8217;s at least. Also the Thunderbird add-ins sometimes are updated, sometimes not. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/jacks-autohotkey-blog.com\/\">Jack&#8217;s AutoHotkey Blog<\/a> comes to the rescue<\/h3>\n\n\n\n<p>A &#8220;DUH!!!!&#8221; moment for me, in his post <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/jacks-autohotkey-blog.com\/autohotkey-topics-and-series\/send-e-mail-using-autohotkey\/\" target=\"_blank\">Send E-Mail Using&nbsp;AutoHotkey-Automating the E-Mail Process Can Make Regular Notifications Easy<\/a><\/strong> he suggests :<\/p>\n\n\n\n<p>Run, Mailto: thisIdiot@aDefinitMoron.com <\/p>\n\n\n\n<p>One line of code and it does it all. It uses my default email program: Thunderbird , it seems to default to the FROM account at the top of my email folder list: HURRAY, and you can set the TO: ThisIdiot@Stupidity.com and it drops you into the Subject box of the email. <\/p>\n\n\n\n<p>It meets all my objectives and is simple. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">can you CC &amp; BCC as well? Yes you can <\/h3>\n\n\n\n<p>So there are some emails I send to one person and CC others , to keep them in the loop, you can add the cc in the mailto and add parameters , see  <strong>this article<\/strong>  as well as adding Subject &amp; body info as well. <\/p>\n\n\n\n<p>I&#8217;ll have to explore that to see if I can add emoji&#8217;s to it to highlight its come from me. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Subject &amp; Body and line break<\/h3>\n\n\n\n<p>You can also add subject and body too, and there is a process, using  <strong><span style=\"background-color:#7bdcb5\" class=\"background-color\">`%0A<\/span><\/strong>  (<em>that&#8217;s a Tilda key at the front<\/em>) to add a line break in the Text body. <\/p>\n\n\n\n<p>Originally you could add an attachment file but that has been blocked in recent years.<\/p>\n\n\n\n<p>So code below for AHK script to put on a MaxLauncher key to launch an email using <strong>mailto:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nem1= Blah@trogs.com\nem2= Trala@pir2.com\nem3= SomeoneElse@gmail.com\nSubj= ?\ufe0fthe tree is green\n\n\n\nBod= The message's first paragraph.`%0ASecond paragraph.`%0AThird Paragraph`%0\nRun, mailto:%em1%?to=%em2%&amp;cc=%em2%&amp;cc=%em3%&amp;bcc=%em3%&amp;subject=%Subj%&amp;body=%Bod%       \n\nReturn\n\n<\/code><\/pre>\n\n\n\n\n\n\n\n<p><strong>RULES<\/strong><br><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Save SCRIPT File as encoding UTF-8-BOM (for Emojis?\ufe0f) to work<\/li><li>Only ONE MAILTO recipient unless you add &#8220;to=&#8221; for subsequent recipients- mailto:%em1%?to=%em2%<\/li><li>CC&#8217;s fpr 2nd need to add &amp;cc=%em3% mailto:%em1%?cc=%em2%&amp;cc=%em3%<\/li><li>Subject needs &amp;subject=<\/li><li>Body needs &amp;body=<\/li><li>New line in Body needs `<code>%0A to start new line<\/code> `%0ASecond paragraph.`%0AThird<br>(see ;https:\/\/www.autohotkey.com\/board\/topic\/42234-how-to-enter-more-than-one-line-in-text-body\/)<\/li><li>attach= C:\/txt.txt ; doesn&#8217;t work in later emails (Win 10)<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Inserting HTML into message<\/h4>\n\n\n\n<p>When the message has opened you do have the opportunity to use Alt <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">End comment<\/h2>\n\n\n\n<p>Sometimes I feel so T&#8217;ick. <\/p>\n\n\n\n<p>Its such an obvious solution. This is a case of not seeing the wood for the trees. <\/p>\n\n\n\n<p>Thank you Jack for sharing, I&#8217;m feeling humble<\/p>\n\n\n\n<p>So this allows for an easy setup for sending an email with a script. So a good simple solution. <\/p>\n\n\n\n<p>The next steps are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li> being able to put HTML into the email <\/li><li>Choosing different signatures for the emails <\/li><\/ul>\n\n\n\n<p>There seems to be some paths to explore :<\/p>\n\n\n\n<p>This <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.joshcanhelp.com\/how-to-send-html-emails-for-free-using-mozilla-thunderbird\/\" target=\"_blank\">article<\/a><\/strong> on putting HTML into a Thunderbird email message,<\/p>\n\n\n\n<p>Jo Glines vid which has HTML,<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to create an HTML email with Outlook and AutoHotKey\" width=\"678\" height=\"509\" data-src=\"https:\/\/www.youtube.com\/embed\/yzxlpZFayiY?start=445&#038;feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>And Juho&#8217;s email vid:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"[Juho&#039;s Random AutoHotkey Stuff #18] Send an Email Without MS Outlook\" width=\"678\" height=\"381\" data-src=\"https:\/\/www.youtube.com\/embed\/f5H-KEcs-e4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just spend a few hours trying to figure out a hotkey script to send emails at a touch of a MaxLauncher key to Thunderbird. My initial objective is to have a DEFAULT sender address, a set TO email ( I can have multiple buttons for different addressee&#8217;s if they are common or just a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7427,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[466,204,42],"tags":[],"class_list":["post-7425","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-autohotkey","category-automation","category-productivity"],"featured_image_src":"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-600x400.jpg","featured_image_src_square":"https:\/\/max-drake.cc\/wp-content\/uploads\/2021\/10\/2021-10-17-19_18_43-Write_-no-subject-Thunderbird-600x600.jpg","author_info":{"display_name":"Max Drake","author_link":"https:\/\/max-drake.cc\/?author=1"},"_links":{"self":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/7425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7425"}],"version-history":[{"count":0,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/7425\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/media\/7427"}],"wp:attachment":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}