Mutt
ph
mail through command line
mutt -s "Test from mutt" user@yahoo.com < /tmp/message.txt mutt -s "Test from mutt" user@yahoo.com < /tmp/message.txt -a /tmp/file.jpg echo "This is the body" | mutt -s "Testing mutt" user@yahoo.com -a /tmp/XDefd.png
[1]
html로 보내려면,
mutt -e "set content_type=text/html" Email address -s "subject" < test.html
attachment to multiple recipients
at mutt manual,
-a file [...] Attach a file to your message using MIME. When attaching single or multiple files, separating filenames and recipient addresses with "--" is mandatory, e.g. mutt -a image.jpg -- addr1 or mutt -a img.jpg *.png -- addr1 addr2. The -a option must be placed at the end of command line options.
addr1 addr2는 띄어써도 되고 --가 필수다.
https://www.cyberciti.biz/tips/sending-mail-with-attachment.html