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 8853729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:43:18+00:00 2026-06-14T13:43:18+00:00

I get a message saying the server requires authentication when i get to the

  • 0

I get a message saying the server requires authentication when i get to the bottom line of the following code block.

MailMessage message = new MailMessage();
message.From = new MailAddress("me@myemail.co.uk");

message.To.Add(new MailAddress("me@myToAddress.co.uk"));

message.Subject = "Message subject";
message.Body = "This is the content";

SmtpClient client = new SmtpClient();
client.Send(message);

However, I thought I had already given it the info it requires in webconfig as follows:

<mailSettings>
  <smtp from="me@myemail.co.uk">
    <network host="mySMTPserver" port="25" userName="myEmail" password="myPass" />
  </smtp>
</mailSettings>

Any advice much appreciated, I read many posts on here and they all seem to be providing the login in the same way.

  • 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-06-14T13:43:19+00:00Added an answer on June 14, 2026 at 1:43 pm

    Two things to try:

    SET
    client.UseDefaultCredentials = false

    SET port:

     client.Port = 587
    

    These properties can also be set in the .config file

    To understand why 587, see
    http://mostlygeek.com/tech/smtp-on-port-587/

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

Sidebar

Related Questions

I get a message saying the following: Error 1 Package restore is disabled by
When debugging I get an warning message on exception saying 'variable info not available
If i wanted to get message for ViewData from resource file, depending on the
Doing code analysis of the project and get the message Reference-counted object is used
After making cabal install of the darcsden code I get this message: cabal: The
I get a error message saying: You have an error in your SQL syntax;
While trying to use soapUI I get the error message saying it fails to
I have the following headers set on the server response.addHeader(Access-Control-Allow-Origin, *); response.addHeader(Access-Control-Allow-Methods, GET, POST,
I get the message Please wait while Windows configures Microsoft Visual Studio 2008... whenever
When I get a message I need to bring the activity to front. I

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.