Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5983123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:11:07+00:00 2026-05-22T22:11:07+00:00

I have an Asp.Net site which uses google SMTP to send emails.. its working

  • 0

I have an Asp.Net site which uses google SMTP to send emails.. its working fine with normal gmail accounts using the below configuration

<smtp from="myname@gmail.com">
<network host="smtp.gmail.com" port="587" userName="myname@gmail.com" password="mypassword" enableSsl="true" /></smtp>

Now I need to use Google Apps email and smtp and I tried to change the configuration as shown below

<smtp from="myname@mydomain.com">
    <network host="smtp.gmail.com" port="587" userName="myname@mydomain.com" password="mypassword" enableSsl="true" /> </smtp>

But its throwing the Authentication failed error!!!
“The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at”

I double checked the Google EMail Settings, Username and password but still couldn’t solve it!!

Any thoughts on the issue will be a great help..

Thanks and Regards,
Anz

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:11:08+00:00Added an answer on May 22, 2026 at 10:11 pm

    From MSDN :

    Some SMTP servers require that the
    client be authenticated before the
    server sends e-mail on its behalf. Set
    this property to true when this
    SmtpClient object should authenticate
    using the default credentials of the
    currently logged on user. If the
    UseDefaultCredentials property is set
    to false, then the value set in the
    Credentials property will be used for
    the credentials when connecting to the
    server.


        client.UseDefaultCredentials = false;
        smtp.EnableSsl = true;
        client.Credentials = new System.Net.NetworkCredential(username, password);
        ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; 
    
        smtp.Send(mail);
    

    Look to this link also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question. I working on one site on Asp.Net, which uses some
simple question... Given I have an ASP.NET site, which uses a [custom] RoleProvider, Is
We have a legacy ASP.NET site which uses the encryption methods here: http://www.codekeep.net/snippets/af1cd375-059a-4175-93d7-25eea2c5c660.aspx When
I have an ASP.Net MVC intranet site which uses Windows Authentication to know who
I have an ASP.NET site which uses a 3rd party activeX control. I have
I have an ASP.Net site, in which I am using a ListView with a
I used to have an embedded user control in an ASP.NET web site which
I have an ASP.NET MVC web site. I have many actions which require authentication
i have part of Asp.NET 1.1 project. I work with remote site, which works
I have a Site.Master in my ASP.NET project which defines a HEAD section as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.