SQL数据库邮件“无法发送邮件”错误

时间:2020-01-26 13:25:14

标签: sql email smtp gmail yahoo-mail

我正在尝试在家用PC上通过SQL使用数据库邮件,但它始终显示错误。我已经尝试过测试:-

EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Notifications',
@recipients = '[my email]',
@body = 'Test',
@subject = 'Test';
GO

想到了

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using
enter code hereAccount 2 (2020-01-25T23:36:39). Exception Message: Cannot send mails to mail server. 
(The SMTP server requires a secure connection or the client was not authenticated.
The server response was: 5.7.0 Authentication Required. Learn more at).  )

然后我将端口更改为587,然后说

The mail could not be sent to the recipients because of the mail server failure.
Exception Message: Cannot send mails to mail server. (The SMTP server requires a secure connection     
or the client was not authenticated. The server response was: 5.7.0 Authentication Required. Learn 
more at).  Sending Mail using Account 6 (2020-01-26T13:04:54). 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

我将非常感谢您的帮助。

欢呼

0 个答案:

没有答案