feat: update mailsend

This commit is contained in:
2022-06-06 00:18:09 +08:00
parent d181d970de
commit d74850d236
3 changed files with 102 additions and 2 deletions

View File

@@ -2,7 +2,8 @@ use mail_send::mail_builder::MessageBuilder;
use mail_send::Transport;
// https://github.com/stalwartlabs/mail-send
fn main() {
#[tokio::main]
async fn main() {
// Build a simple multipart message
let message = MessageBuilder::new()
.from(("John Doe", "john@example.com"))