sql-server - 由于使用office 365的邮件服务器故障(SQL),邮件无法发送给收件人
问题描述
我已经执行了以下操作。
EXEC msdb.dbo.sp_send_dbmail @profile_name='Client_Messages',
@from_address= 'Client Automation <messages@client-services.com>',
@recipients='noufal@companynamedomain.com',
@subject='This is a Test mail',
@body='This is a Test mail from Test DB server',@body_format='html';
得到错误。有时它有效,即;邮件成功执行。有时发生错误。错误信息如下。
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 6 (2021-10-23T17:26:05). Exception Message: Could not connect to mail server. (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 12.18.126.228:587).
解决方案
推荐阅读
- c - 我的“猜密码”不起作用,如何解决?
- python - 如何使用 gzip 有效地将许多小文件压缩成许多小的 .tar.gz 文件?
- java - 如何将字符串转换为浮点数组?
- divio - Divio 应用程序冻结并停止工作
- ios - 无法将我的 Codename One iOS 应用程序连接到我的服务器
- c# - 做一个课堂项目,设法得到一些稳定的代码。但是它没有按预期计算。为什么以及什么会解决它?
- numpy - 如何在 np.reshape 期间指定顺序
- arrays - 如何在 REACT JS 中以特定 JSON 对象格式推送 localStorage 中的数组?
- c# - 如何解决统一 IAP 未正确初始化的问题?
- c++ - 比较 C++ 中的 str.erase() 效率