mirror of
https://github.com/tmcw/obsidian-freeform.git
synced 2026-07-22 10:10:32 +00:00
No description
| .github | ||
| example | ||
| .gitignore | ||
| CHANGELOG.md | ||
| esbuild.config.mjs | ||
| LICENSE | ||
| main.ts | ||
| manifest.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| versions.json | ||
Email Block for Obsidian

This plugin lets you plan small emails inside your Obsidian notes.
Install ..
.. automatically in Obsidian (not yet)
- Go to Community Plugins in your Obsidian Settings and disable Safe Mode
- Click on Browse and search for "Email Block"
- Click install
- Toggle the plugin on in the Community Plugins tab
.. manually from this repo
- Download the latest release
*.zipfile. - Unpack the zip in the
.obsidan/pluginsfolder of your obsidian vault
How to use
Add the "email" code block into your note:
... with plain text as body content:
```email
to: info@randommail.com
subject: My Subject
body: "Hey info,
here is some content"
```
... with a referenced note as body content:
```email
to: info@randommail.com
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 frontmatter data can be used as well.
Parameter
You can customize the view with the following parameters:
| Parameter | Description | Values |
|---|---|---|
| to | The main receiver of the mail. Multiple receiver seperated by ",". | String value |
| cc | The cc receiver of the mail. Multiple receiver seperated by ",". | String value |
| bcc | The bcc receiver of the mail. Multiple receiver seperated by ",". | String value |
| subject | The subject of the email. | String value |
| body | The body of the email. Plain text or a link to a NoteFile (x). | String value |
| showmailto | Show the "mailto" link after the mail body. | true/false (Default: true) |
| variables | A map of placeholder variables. | YAML Object |
x) Note that no formatting is supported (only new lines) (reason).
Example
How to dev
- Clone this repo into the plugin folder of a (non-productive) vault (
.obsidian/plugins/) npm inpm run dev- Toggle the plugin on in the Community Plugins tab
