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

  • Home
  • SEARCH
  • 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 8802535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:06:37+00:00 2026-06-14T01:06:37+00:00

On my website i send e-mails. My situation is these mails are being sent

  • 0

On my website i send e-mails. My situation is these mails are being sent when using my local development machine, and not on my production environment.

The web.config is the same on both sites:

  <system.net>
    <mailSettings>
      <smtp from="info@domain.dk" deliveryMethod="Network">
        <network host="mail.domain.dk" userName="info@domain.dk"  password="mypassword" port="26"></network>
      </smtp>
    </mailSettings>
  </system.net>

In my code, I send it like this:

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

I have no idea how to debug this problem, as it is the exactly same code on both production and development.

Any ideas on how to start debugging / solving the problem?

EDIT:

I managed to get a log from the server. Error is:

2012-11-01 20:41:58,383 [11] FATAL GKBusiness.Managers.MailManager [(null)] - Email exception: Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

Hmm

  • 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-14T01:06:40+00:00Added an answer on June 14, 2026 at 1:06 am

    My situation is these mails are being sent when using my local development machine, and not on my production environment.

    <network host=..... port="26">
    

    If you are in a shared hosting environment, it’s likely that ASP.Net is set to Medium Trust – and if so, SMTP is restricted to port 25.

    It will work in your local environment because ASP.Net is set to Full Trust (in local/VS dev).

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

Sidebar

Related Questions

I am using PHPMailer to send automated e-mails from my website and while testing,
I want send schedule mails using my php website, I don't want to use
I have some issues with my email -body when i send mails I'm using
I will have to send mails from a php website via smtp. The smtp
I am using Microsoft's membership framework on a website. I am able to send
I am sending out emails from my website using Zend_Mail and Send Grid. I
I'm using mail to send e-mails from PHP. It's working fine, but now I
I am using phps mail() function to send confirmation e-mails. The e-mails get received
I am using this link to send mails using Mapi. But I would like
I made a Razor MVC3 website, from which I can send E-Mails. I made

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.