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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:00:35+00:00 2026-05-13T13:00:35+00:00

Perhaps this is more of an IIS question than programming, but I’ll throw it

  • 0

Perhaps this is more of an IIS question than programming, but I’ll throw it out there nonetheless.

I am attempting to send an email via SMTP with C# using the following test code:

//params: from email, to email, subject, body
MailMessage m = new MailMessage( <sendemail>, <receiveemail>, "testsubject", "Testbody" );

SmtpClient c = new SmtpClient( <SMTP Server> );

c.Send( m );

Extremely simple. I am avoiding credentials entirely because of the configuration on my SMTP server:

alt text http://img683.imageshack.us/img683/8909/smtp1.png

This should allow me to connect without credentials. Alternatively I’ve tried empty strings for username/password, and default credentials.

When I send attempt to send, I get the “Sending SMTP Email to failed with the following error: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for ” Error. I go to the relay section of IIS, and it is as follows:

alt text http://img192.imageshack.us/img192/5002/smtp2.png

So my thought is even though the “Allow all computers which successfully authenticate to relay” option is enabled, since I allow anonymous authentication my application is not able to relay. Is this the case? If so, how do I go about fixing my code to be able to relay? I’ve tried messages to emails inside and outside of the domain, to no avail. This is a server 2003 machine.

  • 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-13T13:00:36+00:00Added an answer on May 13, 2026 at 1:00 pm

    Your assessment is correct.

    You can either switch to using authenticated connections, or else add all of the IP’s/Domains that your code will run from to the relay exceptions list.

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

Sidebar

Related Questions

This is perhaps more of a discussion question, but I thought stackoverflow could be
Perhaps this is just my background in more imperative programming, but I like having
Background/context As schema.org is relatively new, perhaps this question will promote more discussion than
Perhaps this question has been asked elsewhere, but I'm unable to find it. With
I have an ObjectDataSource (but perhaps this question is the same for all kinds
This is not really a functional problem I'm having but more a strategic question.
Perhaps this question has been asked before in a different way, but I haven’t
Perhaps this is a naive question. In my understanding, ASP.NET MVC cannot work with
Perhaps this has something to do with it being the mainForm, but I'll ask
[EDIT] Hmm. Perhaps this question should be titled what is the default user-input dialog

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.