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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:08:47+00:00 2026-06-13T20:08:47+00:00

I get this ‘pop-up’ error when I press the send button in debug mode

  • 0

I get this ‘pop-up’ error when I press the send button in debug mode to a specific address from the ‘txtMail'(receiver):

MailerException was unhandled by user code
Mailbox unavailable.
The
server response was: 4.7.1 Client host rejected: cannot find your
hostname, [IP]

The code actually trips over the last line, which is:

    catch(Exception ex)
            {
                throw new MailerException(ex.Message, ex);
            }

I don’t think there is a problem with the code itself, but here is the whole code so maybe someone can spot the issue:

public void SendMail()
        {
            System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();

            // Mail from
            if (!string.IsNullOrEmpty(this.mailFrom))
                message.From = new MailAddress(this.mailFrom);
            else
                message.From = from;

            if (!IsValidEmailAddress(message.From.Address))
                throw new MailAddressException("From address " + message.From + " is not valid");

            //message.From =   from;
            // Add recipients
            if (_RecipientNames.Count == 0)
                throw new RecipientException("No recipients added");


            StringBuilder Recipients = new StringBuilder();
            for(int i = 0; i < _RecipientEmailAddresses.Count; i++)
            {
                if (_RecipientNames[i].ToString().Length > 0)
                    message.To.Add(new MailAddress((string)_RecipientEmailAddresses[i], (string)_RecipientNames[i]));
                else
                    message.To.Add(new MailAddress((string)_RecipientEmailAddresses[i]));
            }

            foreach (MailAddress ma in this._Bcc)
                message.Bcc.Add(ma);

            if (this._ReplyToAddress != null)
                message.ReplyTo = this._ReplyToAddress;

            message.Subject     = _Subject;
            message.IsBodyHtml = this.isHtmlMail;
            message.BodyEncoding = this.BodyEncoding;

            // Priority
            message.Priority = this.priorityLevel;

            // Load template file?
            if (_TemplateFile.Length > 0)
            {
                message.Body = GetMailTemplateContents();
            }
            else
                message.Body = _MailBody;

            // Attachments given?
            if (this.attachments.Count > 0)
            {
                foreach (Attachment a in this.attachments)
                    message.Attachments.Add(a);
            }

            SmtpClient client = new SmtpClient(_SmtpServer);
            try
            {
                client.Send(message);
            }
            catch(System.Web.HttpException ex)
            {
                throw new MailerException(ex.Message,ex);
            }
            catch(System.Runtime.InteropServices.COMException ex)
            {
                // Rethrow the exception
                throw new MailerException(ex.Message, ex);

            }
            catch(Exception ex)
            {
                throw new MailerException(ex.Message, ex);
            }

Some may say that this is actually an error code returned by the server I’m attempting to deliver to. (Mailbox full, invalid e-mail address etc)

Either way, or does it needs to be resolved by the admin of the mail server?
is there anyone who might know why this error might occur?

Willing to provide any other/more information if needed.
Thanks in Advance,

  • 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-13T20:08:48+00:00Added an answer on June 13, 2026 at 8:08 pm

    This looks like the recieving SMTP server rejected the message. I am guessing it tried to do a reverse lookup on your IP and Hostname and was not able to find a match. This is a common anti-spam practice.

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

Sidebar

Related Questions

I get this error while accessing a php script: W/System.err: Error reading from ./org/apache/harmony/awt/www/content/text/html.class
I get this error when I use simplejson from django.utils in google app engine
I get this error when trying to get a feed from Google Analytics API.
I get this error when reading some data from an SQL column then converting
I get this error when i click the login button of facebook in my
I get this error from sbt when running appengine-dev-server How can I tell sbt-appengine
I get this error message on my server: Method 'GetVirtualPath' in type 'System.Web.Http.WebHost.Routing.HostedHttpRoute' from
i get this error in the console after i push the button. Unbalanced calls
I get this error when i try to upload an image: OSError at /upload/
I get this error on my Ice Cream Sandwich (Android 4.0) device and emulator.

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.