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!

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter7: Working With The Bash Shell
Section: Chapter Questions
Problem 7DE
icon
Related questions
Question

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! 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Avoiding deadlock
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L