SQL server: I asked a question about getting this error message 'smtp server requires secure connection or the client was not authenticated' when I tried to send a test email using database mail for the first time. One of your experts sent me the following solution, To fix this issue, do this, smtp.EnableSsl = true; if not resolved try this, "Access for less secure apps" must be enabled for the g mail account used by the Network Credential But SQL server is not allowing me to execute the syntax, it shows Incorrect syntax near '='. and which database I should use to write the syntax? And I think 'less secure app access' is no longer available on google account. Do you have any solution to fix this? Thank you for replying!
SQL server: I asked a question about getting this error message 'smtp server requires secure connection or the client was not authenticated' when I tried to send a test email using
To fix this issue, do this,
smtp.EnableSsl = true;
if not resolved try this,
"Access for less secure apps" must be enabled for the g mail account used by the Network Credential
But SQL server is not allowing me to execute the syntax, it shows Incorrect syntax near '='.
and which database I should use to write the syntax?
And I think 'less secure app access' is no longer available on google account. Do you have any solution to fix this? Thank you for replying!
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)