閱讀279 返回首頁    go 微信


SMTP之perl調用示例__SMTP接口說明_郵件推送-阿裏雲

# Swaks is an smtp of CURL, install it first:
curl https://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 smtpdm.aliyun.com 
        --au domaintest@dm.aliyun.com 
        --ap ***** 
        --from domaintest@dm.aliyun.com 
        --to test@test.com 
        --h-Subject: "Hello" 
        --body 'Testing mail!'

注:請在 --au 後替換您的郵件推送地址;--ap 後替換您的郵件推送密碼;--from後替換郵件推送地址;--to 後替換接收地址;

最後更新:2016-11-24 11:23:48

  上一篇:go SMTP之python調用示例__SMTP接口說明_郵件推送-阿裏雲
  下一篇:go SMTP之Ruby調用示例__SMTP接口說明_郵件推送-阿裏雲