【发布时间】:2016-02-10 16:43:33
【问题描述】:
我尝试通过 curl 发送电子邮件。并且以下代码不起作用。
curl --connect-timeout 59 -v --insecure "smtps://smtp.live.com:25" -u "*****@outlook.com:*******" --mail-from "********@outlook.com" --mail-rcpt "*****@yahoo.de" -T mail.txt --ssl
谁能告诉我怎么了?我想通过 Outlook.com 发送电子邮件。
【问题讨论】:
-
嗨!可能您需要在此处添加更多信息。由于您仅指定 curl 实用程序参数,这可能不足以确定发生了什么问题。请尝试重塑您的问题,添加更多堆栈跟踪、错误代码或日志消息。问候。
-
这是我的输出
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 65.55.176.126... * Connected to smtp.live.com (65.55.176.126) port 25 (#0) 0 0 0 0 0 0 0 0 --:--:-- 0:00:58 --:--:-- 0* Operation timed out after 0 milliseconds with 0 out of 0 bytes received * Closing connection 0 curl: (28) Operation timed out after 0 milliseconds with 0 out of 0 bytes received