怎样使用CURL发送邮件
格式
curl --verbose -s
--url "smtp://smtp.sina.com"
--mail-from "发件人邮箱"
--mail-rcpt "收件人邮箱"
--upload-file mail.txt
--user "用户名:密码"
mail.txt
From: "sendername" <sender@sina.com>
To: "receivername" <reciever@sina.com>
Subject: This is a test2
hello! 1223
I'm sending this mail with curl thru my gmail account.
Bye!
例
curl --verbose -s
--url "smtp://smtp.sina.com"
--mail-from "sender@sina.com"
--mail-rcpt "reciever@sina.com"
--upload-file mail.txt
--user "sender@sina.com:123456"