配置电子邮件配置文件并使用SQL Server发送测试邮件 [英] Configure email profile and send test email using SQL server

查看:258
本文介绍了配置电子邮件配置文件并使用SQL Server发送测试邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图按照链接上提供的步骤操作。但没有成功。



https://www.codeproject.com/tips/846204/how-to-send-mail-using-sql-server-part



请提供解决方案。



我尝试了什么: < br $>


使用smtp.gmail.server设置创建一个配置文件,并尝试使用数据库邮件中的发送测试电子邮件发送邮件。

解决方案

请参阅数据库邮件疑难解答 [ ^ ]并按照建议检查邮件状态,以了解发生了什么。如果您仍然无法自行解决问题,请将报告的错误添加到您的问题中(使用绿色的改善问题链接)。



还要确保您满足发送到GMail帐户的要求(服务器: smtp.gmail.com ,端口587,复选框'此服务器需要安全连接(SSL)'选中,有效的用户名和密码)和您允许安全性较低的应用发送邮件(请参阅允许安全性较低的应用访问帐户 - G Suite管理员帮助 [ ^ ])。

Tried to follow the steps provided on link. but did not succeed.

https://www.codeproject.com/tips/846204/how-to-send-mail-using-sql-server-part

please provide a solution.

What I have tried:

Created a profile with smtp.gmail.server settings and tried to sent the mail using Send Test Email inside the Database mail.

解决方案

See Troubleshooting Database Mail[^] and inspect the mail status as suggested there to know what happened. If you are still not able to fix the problem yourself, add the reported errors to your question (use the green 'Improve question' link).

Ensure also that you met the requirements for sending to GMail accounts (server: smtp.gmail.com, port 587, check box 'This server requires a secure connection (SSL)' checked, valid user name and password) and that you have allowed less secure apps to send mail (see Allow less secure apps to access accounts - G Suite Administrator Help[^]).


这篇关于配置电子邮件配置文件并使用SQL Server发送测试邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆