Error says it all...
Quote:
The SMTP server requires a secure connection or the client was not authenticated.
You should have
EnableSsl = True
instead of
False
, because
Gmail works on
SSL
.
After doing this, the code should work. Otherwise make sure that credentials, which is used to connect to
Gmail are correct.
For a full working code, see my past answer -
sending email to gmail from asp.net[
^].