command to send mail configuration under Linux
1, then modify the/etc/mail.rc, add the following at the end of the file, specify the external SMTP server address, account password, etc.
Configured as follows
Set from= email account
Set smtp=smtp. QQ . com
Set SMTP - Auth - User = Email account
Set SMTP-auth-password= Authorization code for mailbox configuration enter here
Set SMTP-auth=Login
Set Smtp-use-starttls
Set Ssl-verify=ignore >/dev/null
Set nss-config-dir=/etc/pki/nssdb/>/dev/null
The last 3 lines are for the script to not have authentication information, etc.
Configuration of my mailbox
Set Bsdcompat
Set [email protected]
Set smtp=smtp.qq.com
Set [email protected]
Set Smtp-auth-password=rauldghldoolbeee
Set Smtp-auth=login
Set Smtp-use-starttls
Set Ssl-verify=ignore >/dev/null
Set nss-config-dir=/etc/pki/nssdb/>/dev/null
Usage
650) this.width=650; "title=" 3.png "src=" https://s3.51cto.com/wyfs02/M01/94/D5/ Wkiol1ko1dywrrhbaaccbveux3e869.png-wh_500x0-wm_3-wmp_4-s_3726923107.png "alt=" Wkiol1ko1dywrrhbaaccbveux3e869.png-wh_50 "/>
echo Content | Mail-s "Mail Header" to send to that mailbox
echo Content | Mail-s "Mail Header" to be sent to that mailbox >>/dev/null 2>&1
In the script, remember to append to the empty
This article is from "No Lover" blog, please make sure to keep this source http://caojiaoyue.blog.51cto.com/11798573/1922852
Configuration of the Linux command send mailbox