Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Email code block

joleafjoleaf7k downloads

Render an email code block.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates13

This plugin lets you plan small emails inside your Obsidian notes.

Install ..

.. automatically in Obsidian

  1. Go to Community Plugins in your Obsidian Settings and disable Safe Mode
  2. Click on Browse and search for "Email Block"
  3. Click install
  4. Toggle the plugin on in the Community Plugins tab

.. manually from this repo

  1. Download the latest release *.zip file.
  2. Unpack the zip in the .obsidan/plugins folder of your obsidian vault

How to use

Add the "email" code block into your note:

... with plain text as body content:

```email
to: [email protected]
subject: My Subject
body: "Hey info,

  here is some content"
```

... with a referenced note as body content:

```email
to: [email protected]
subject: My Subject
body: [[MyMail4711]]
variables:
  myvar: TestVar
```

You can use the variables parameter to replace placeholders in your body text with the variable values. To include a variable in the body text just add a placeholder {{myvar}}. Variables from fontmatter data can be used as well.

... with a body text after the yaml:

```email
to: [email protected]
subject: Hello World
---
Hi there,
this is my new body
Best!
JB
```

... you can use properties, like variables, on the subject or within the body:

```email
to: [email protected]
subject: reminder for {{name}}
---
Dear {{name}},
this is not a personal email.
Regards,
FI
```

Parameter

You can customize the view with the following parameters:

Parameter Description Values Required
to The main receiver of the mail. Multiple receiver seperated by ",". String / List of Strings
cc The cc receiver of the mail. Multiple receiver seperated by ",". String / List of Strings
bcc The bcc receiver of the mail. Multiple receiver seperated by ",". String value / List of Strings
subject The subject of the email. Plain text or combined text with variables String value x
body (1) The body of the email. Plain text or a link to a [[NoteFile]] (2). String value x
showmailto Show the "mailto" link after the mail body. true/false (Default: true)
variables A map of placeholder variables. YAML Object
from A from field (only for documentation). String value
date The date/time the mail was sent (only for documentation). String value
  1. The body can be appended after the yaml with a "---" separation
  2. No formatting is supported (only new lines) (reason).

Example

Example

How to dev

  1. Clone this repo into the plugin folder of a (non-productive) vault (.obsidian/plugins/)
  2. npm i
  3. npm run dev
  4. Toggle the plugin on in the Community Plugins tab

Contributors

Thank you for your contributions!

  • Vrum89
  • xxie-xd

Donate

74%
HealthGood
ReviewSatisfactory
About
Compose and plan small emails directly inside your notes using an email code block, with body content as plain text, a referenced note, or inline after YAML. Use variables and frontmatter placeholders like {{name}} to inject content, specify recipients (to/cc/bcc), and show a mailto link.
TemplatingPropertiesLinks
Details
Current version
1.1.1
Last updated
6 months ago
Created
3 years ago
Updates
13 releases
Downloads
7k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
joleafjoleaf
github.com/JoLeaf
GitHubjoleaf
  1. Community
  2. Plugins
  3. Templating
  4. Email code block

Related plugins

PodNotes

Write notes on podcasts with ease.

Wikilink Types

Type @ inside wikilink aliases to add relationship types, auto-synced to YAML frontmatter.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.

Smart Connections

AI link discovery copilot. See related notes as you write. Lookup using semantic (vector) search across your vault. Zero-setup local model for embeddings, no API keys, private.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Link Favicons

See the favicon for a linked website.

Advanced URI

Control everything with URI.