GithubHelp home page GithubHelp logo

xxie-xd / obsidian-email-block-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joleaf/obsidian-email-block-plugin

0.0 0.0 0.0 1008 KB

An email block for obsidian notes.

License: MIT License

JavaScript 9.39% TypeScript 84.08% CSS 6.53%

obsidian-email-block-plugin's Introduction

Email Block for Obsidian GitHub tag (latest by date) Release Obsidian Plugin Obsidian downloads

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
  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

Donate

Buy Me a Coffee at ko-fi.com

obsidian-email-block-plugin's People

Contributors

joleaf avatar claremacrae avatar xxie-xd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.