【问题标题】:Send email via curl通过 curl 发送电子邮件
【发布时间】: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

标签: bash curl terminal smtp


【解决方案1】:

在您添加更详细的输出后,它看起来像 ssl 相关问题,此处描述了相同的症状 - cURL: Operation timed out after 0 milliseconds,希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 2023-03-25
    • 1970-01-01
    • 2012-01-07
    • 2012-04-27
    • 2016-07-04
    • 2018-09-19
    • 2021-03-23
    • 2017-05-16
    相关资源
    最近更新 更多