2013-04-17 119 views
2

我想用SSIS发送电子邮件和附件,并发生下面的错误。SSIS发送邮件任务错误

[Send Mail Task] Error: An error occurred with the following error message: "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at".

下面是我的SMTP连接管理器,发送邮件任务,并出现上述错误..

enter image description here

enter image description here

任何帮助..

回答

6

您需要提供身份验证,GMail不能用作开放中继。

此外,您无法使用Windows身份验证连接到GMail,因此您必须使用脚本组件,然后在.Net中执行此操作,如果这必须是您的邮件服务器。

这里的人谁发现&解决了这个已经,甚至包括Gmail的一部分:http://kalyan-coldfusion.blogspot.co.uk/2012/04/send-email-with-ssisdatabase-from-gmail.html

更好的运气与谷歌搜索在未来:)

+0

+1“在未来的谷歌搜索运气更好”。 –

+0

但我的问题是如何使用发送邮件任务...这个例子是好的,但它是一种技巧...如果我想使用发送邮件任务的确如此? – Moumit