如何在SSIS SMTP连接管理器中指定用于简单身份验证的凭据? [英] How Can I Specify Credentials for Simple Authentication in SSIS SMTP Connection Manager?
问题描述
我们有几个发送电子邮件的 asp.net
网络应用程序,并且 MailMessage
对象配置了 SMTP
服务器,用户名和密码。电子邮件发送没有问题。
We have several asp.net
web apps that send emails, and the MailMessage
object is configured with an SMTP
server, username and password. The emails are sent with no problems.
在 SSIS
程序包中,我添加了一个SMTP连接管理器,配置了SMTP服务器。我设置 UseWindowsAuthentication = True
是因为我看不到用户名/密码的输入位置。
In an SSIS
package, I added an SMTP connection manager, and I configured the smtp server. I set UseWindowsAuthentication=True
because I don't see where I type in username/password.
运行时从 SQL Server Agent
包中,SSIS正确发送了电子邮件,因此显然不需要用户名/密码。
When I run the package from SQL Server Agent
, the SSIS sends the email correctly, so apparently, the user/password is not needed.
那么SMTP软件包如何在没有用户凭据的情况下发送电子邮件? asp.net也不需要凭据吗?
So how can the SMTP package send an email without the user credentials? Does it make sense that the asp.net don't need the credentials either?
我们都在同一个公司网络中,我们使用 Exchange Server
。
We're all under the same company network and we use Exchange Server
.
谢谢。
推荐答案
查看此链接。
它说明程序包正在使用Sql Server代理帐户连接到主机。
此外,SMTP连接管理器仅支持匿名身份验证和Windows身份验证。它不支持基本身份验证-如文档。
It explains that the package is using the Sql Server Agent account to connect to the host. Furthermore, the SMTP connection manager supports only anonymous authentication and Windows Authentication. It does not support basic authentication - as stated in the documentation.
这篇关于如何在SSIS SMTP连接管理器中指定用于简单身份验证的凭据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!