SQL Server acts as a comon SMTP client, sending a mail to the server and if don't work, then you have a mistake in the configuration.
sql server not sending Gmail
hi every one ,
i have configured SQL server with Gmail to send email from MS SQL Server ,
my server name =smtp.gmail.com
checked (SSL)
port no 587
its configured successfully but when I send email ,it raise:
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2023-08-09T22:03:44). Exception Message: Could not connect to mail server. (No such host is known). )
SQL Server Other
2 additional answers
Sort by: Most helpful
-
Anonymous
2023-08-10T08:57:02.43+00:00 Hi @sohrab khan
Please refer to this document for general database troubleshooting: https://learn.microsoft.com/en-us/sql/relational-databases/database-mail/database-mail-general-troubleshooting?view=sql-server-ver15.
I also found some links to setup database mail in SQL Server using Gmail, you can check if the steps are correct:
https://appuals.com/how-to-setup-database-mail-in-sql-server-using-gmail/.
Hope these can help you.
Best regards,
Aniya
-
Javier Villegas 900 Reputation points MVP
2023-08-10T09:29:00.09+00:00 Hello
Please follow this link. It is working fine for me
https://appuals.com/how-to-setup-database-mail-in-sql-server-using-gmail/