
mutt
및를 사용하지 않고 bash 스크립트에서 이메일을 통해 파일을 첨부 파일로 보내는 방법은 무엇입니까 uuencode
?
답변1
echo "Message body" | mailx -s "Subject" -a "/path/to/attachment" [email protected]
또는
cat "/path/to/messagebody.txt" | mailx -s "Subject" -a "/path/to/attachment" [email protected]