# jomail **Repository Path**: plus7wist/jomail ## Basic Information - **Project Name**: jomail - **Description**: Send Email Via SMTP - **Primary Language**: Rust - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: https://gitee.com/plus7wist/jomail - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2019-09-16 - **Last Updated**: 2021-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Jomail - Send Email ## Send Email Write email in a text file, with TOML header. ``` # sample.txt host = "smtp.xxx.com" user = "zhangsan@xxx.com" password_eval = ["cat", "password.txt"] target = ["lisi@xxx.com"] subject = "Hello, World" --- This is the content of email. Leading empty lines will be deleted. ``` Then send that email: ``` jomail sample.txt ``` Or read mail file from standard input: ``` cat sample.txt | jomail - ``` ## Header Configuration - `host`, string, smtp host address. - `user`, string, account name of sender at host. - `password_eval`, array of string, run this command, collect the output as the password. - `target`, array of string, send email to them. - `subject`, string, title of email.