Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nickanderson/dc98ce00d4c42fa81ed90adf719ca48d to your computer and use it in GitHub Desktop.
Save nickanderson/dc98ce00d4c42fa81ed90adf719ca48d to your computer and use it in GitHub Desktop.
How to write and prepare an email to be sent from org-mode

How to write and prepare an email to be sent from org-mode

@[email protected] https://social.coop/@fnat/114830041609939391 was interested in a workflow where he would write an email in org-mode that gets converted to text to be sent out.

I do not publish my config, it’s a lot of org-mode. Some is tangled, some is manually loaded via babel blocks that I execute as I re-need something.

To author an email in org-mode I often use a capture template that pre-fills some information but basically I have something like this:

* TODO Write an email to myself so that I can show how to author emails in org-mode
:PROPERTIES:
:mail_to:  Nick Anderson <[email protected]>
:mail_subject: I wrote this with love in Emacs org-mode
:mail_from: Nick Anderson <[email protected]>
:END:

Emacs org-mode wisdom #42: Org-mode This Is The Way.
 #+DOWNLOADED: https://cdn.fosstodon.org/media_attachments/files/114/664/555/309/558/353/original/27752a727646342a.jpg @ 2025-07-10 17:52:39
 [[attachment:2025-07-10_17-52-39_27752a727646342a.jpg]]

attachment:2025-07-10_17-52-39_27752a727646342a.jpg

Then I use org-mime-org-subtree-htmlize from org-mime and then I send it which drops to my local postfix queue for delivery via smtpauth based on the sender.

attachment:2025-07-10_18-07-28_Screenshot_20250710_180711.png

@nickanderson
Copy link
Author

nickanderson commented Jul 10, 2025

2025-07-10_18-07-28_Screenshot_20250710_180711

@nickanderson
Copy link
Author

2025-07-10_17-52-39_27752a727646342a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment