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!
Step by step
Solved in 2 steps