使用 Perl 通過 SMTP 協議發信
# Swaks is an smtp of CURL, install it first:
curl http://www.jetmore.org/john/code/swaks/files/swaks-20130209.0/swaks -o swaks
# Set the permissions for the script so you can run it
chmod +x swaks
# It's based on perl, so install perl
sudo apt-get -y install perl
# now send!
./swaks --auth \
--server smtpexample.net \
--au domaintest@example.net \
--ap ***** \
--from domaintest@example.net \
--to test@test.com \
--reply-to 自訂回信地址 \
--h-Subject: "Hello" \
--body 'Testing mail!'註:請在 —au 後替換髮信地址;—ap 後替換 SMTP 密碼;—from後替換髮信地址;—to 後替換收信地址。