none
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2020-05-22T19:11:35). Exception Message: Cannot send mails to mail server. RRS feed

  • Question

  • Since yestarday we are getting below error in database mail. Not able to send even test mail. I am using office365 for smtp. I have checked the smtp configuration everything looks good but still getting this error.

    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2020-05-22T19:11:35). Exception Message: Cannot send mails to mail server.

    Pls suggest any solution. Thank you.


    Ram

    Saturday, May 23, 2020 4:13 AM

All replies

  • This is another account available in smtp ,try to send mail from it.

    use msdb  
    go  
    select * from sysmail_allitems 

    check test mail using script.

    EXEC msdb.dbo.sp_send_dbmail  
        @profile_name = 'Notifications',  
        @recipients = '<recipient list>',  
        @body = 'youve sent email from database.',  
        @subject = 'test mail from mssql sevrer',
    	@from_address = '<from email>',
    	@reply_to = '<from email>'

    check mail server port is open ?

    telnet mail.emailarchitect.net 25




    https://social.technet.microsoft.com/wiki/contents/articles/37872.sql-server-installation-on-centos-linux.aspx

    Monday, May 25, 2020 7:04 AM
  • Hi Ram,

    >> The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2020-05-22T19:11:35). Exception Message: Cannot send mails to mail server.

    Could you please check the log again to find if more error message as below.
    The mail could not be sent to the recipients because of the mail server failure. 
    (Sending Mail using Account 1 (2018-09-13T13:25:16). Exception Message: Cannot send mails to mail server. (A recipient must be specified.).

    Error from this similar thread.

    Please also check your configuration steps refer below document to see if you missed something.
    Configure Database Mail 
    Setting up Database Mail for SQL Server.

    Best regards,
    Cathy 

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to  MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, May 25, 2020 7:44 AM