Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regisrex/maillit
[Experimental] - email framework π«
https://github.com/regisrex/maillit
Last synced: 6 days ago
JSON representation
[Experimental] - email framework π«
- Host: GitHub
- URL: https://github.com/regisrex/maillit
- Owner: regisrex
- Created: 2024-03-05T16:47:10.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-15T11:33:24.000Z (8 months ago)
- Last Synced: 2024-03-15T12:52:33.466Z (8 months ago)
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
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.rsuse 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