git - 使用 Outlook 电子邮件时 git send-email 出现“发送邮件需要 STARTTLS”错误
问题描述
我正在使用 ubuntu 20.04,最初,我没有git send-email
作为有效命令。我安装git-email
然后git send-email
开始工作。
我有以下配置文件:
[sendemail]
# smtpuser = <myemail@outlook.com>
from = My Name <myemail@outlook.com>
smtpserver = smtp.office365.com
smtpencryption = STARTTLS
smtpserverport = 587
当我运行git send-email --to <myemail@outlook.com> patches/*.patch
测试它并将相应的补丁发送到我的电子邮件时,我得到以下输出:
5.7.3 STARTTLS is required to send mail [ZR0P278CA0106.CHEP278.PROD.OUTLOOK.COM]
我从我的电子邮件设置中获得了 Outlook 网站的 SMTP 服务器、加密方法和服务器端口。
PS:我已经smtpuser
注释掉了,因为我得到了一个通过这个答案解决的错误,通过删除该smtpuser
字段。
解决方案
推荐阅读
- javascript - 当文本遇到其所在框的边界时停止增加字体大小
- powershell - Wget 下载具有更改 URL 的软件
- java - mvn jar 文件:库包含失败
- java - 如何在不使用括号的情况下解决这个问题?
- python - PyTorch:_thnn_nll_loss_forward 没有为 torch.LongTensor 类型实现
- r - 使用 R 从 ugarchboot 输出中提取预测区间
- google-drive-api - 如何使用 PyGSheets v2 在特定文件夹/目录中创建新工作表?
- autodesk-forge - Forge Properties - 如何识别返回的集合
- mybatis - 如何从 Mybatis 获取 db 列值进行分片?
- ios - WCSession 检查配套应用程序是否可以接收消息