Quantcast
Channel: 看得透又看得远者prevail. ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
Viewing all articles
Browse latest Browse all 20529

Send mails with mutt on Linux vps

$
0
0

Given that the sendmail MTA is in use on Linux.
Install mutt:
# yum install mutt
# vi ~/.muttrc
Append the following into .muttrc:
set sendmail="/usr/sbin/sendmail"
set use_from=yes
set realname="webmaster"
set from=no-replay@example.com
set envelope_from=yes
Send email:
# echo "CONTENT" | mutt -s "SUBJECT" -a /path/to/attachment.zip receiver@example.com

Viewing all articles
Browse latest Browse all 20529


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>