Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/regisrex/maillit

[Experimental] - email framework πŸ“«
https://github.com/regisrex/maillit

Last synced: 6 days ago
JSON representation

[Experimental] - email framework πŸ“«

Awesome Lists containing this project

README

        

## MaillitπŸ“«

How can a fully featured email framework be like ?

### Sample

```html


{% if is_premium_user %}


Hello, {{ name }}! Welcome to our premium service.


{% else %}


Hello, {{ name }}! Sign up for our premium service today!


{% endif %} {% for product in products %}

{{ product.name }}


{{ product.description }}


Price: ${{ product.price }}



{% endfor %}

```

```rust
// filename: src/main.rs

use maillit::template::Template;
use maillit::email::Email;

fn main(){
let template = Template::from("verification_code.mlit").unwrap()

let context = {
user_name : "Ashley",
verification_code : "5452232"
}

let html = template.render(&context).unwrap()

let email = Email::new()
.to("[email protected]")
.from("[email protected]")
.subject("Your verification code")
.html(&html)
.build()
.send()

}
```

### 1. Features

[] Mail templating
[] Email styling with tailwindcss
[] Mail sending
[] Allow plugins

### 2. Think in maillit

This is just an email framework that solves all the issues with emails

### 3. Maintainers

This project is being built by [@regisrex](https://regisndizihiwe.me)

### 4. Licence

This project is under MIT LICENCE