==== 使用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 smtp.bestedm.org \ --au domaintest@info.bestedm.org \ --ap ***** \ --from domaintest@info.bestedm.org \ --to test@test.com \ --h-Subject: "Hello" \ --body 'Testing mail!' 注:请在 --au 后替换您的邮件推送地址;--ap 后替换您的邮件推送密码;--from后替换邮件推送地址;--to 后替换接收地址;