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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:20:17+00:00 2026-05-21T15:20:17+00:00

I have Windows XP and configured SMTP server in my IIS . Specified AllUnAssigned

  • 0

I have Windows XP and configured SMTP server in my IIS. Specified AllUnAssigned in IP address of general tab and specified 127.0.0.1 in connection under Access tab.

Now I tried sending mails using my local SMTP server using the following code,

MailMessage amessage = new MailMessage();
amessage.To.Add(new MailAddress("xxx@gmail.com"));
amessage.From = new MailAddress("yyy@gmail.com");
amessage.Subject = "TestMail";
amessage.Body = "This is a testmail";
SmtpClient clienta = new SmtpClient("localhost");
clienta.Timeout = 500;
clienta.Credentials = CredentialCache.DefaultNetworkCredentials;
try
{
    clienta.Send(amessage);
}
catch (Exception ex)
{

   Console.WriteLine(ex);
    Console.ReadLine();
}

Console.ReadLine();

I don’t get any error in executing the above code but no mails were sent/received. When I checked in the Inetpub I find the below file:

From: postmaster@munged
To: yyy@gmail.com
Date: Tue, 26 Apr 2011 11:07:22 +0530
MIME-Version: 1.0
Content-Type: multipart/report;
report-type=delivery-status;
boundary=”9B095B5ADSN=_01CC03D260FE2C6C00000003munged?xxx”
Message-ID:

Subject: Delivery Status Notification
(Failure)

This is a MIME-formatted message.
Portions of this message may be
unreadable without a MIME-capable mail
program.

–9B095B5ADSN=_01CC03D260FE2C6C00000003munged?munged
Content-Type: text/plain;
charset=unicode-1-1-utf-7

This is an automatically generated
Delivery Status Notification.

Delivery to the following recipients
failed.

   xxx@gmail.com

–9B095B5ADSN=_01CC03D260FE2C6C00000003munged?munged
Content-Type: message/delivery-status

Reporting-MTA: dns;munged
Received-From-MTA: dns;munged
Arrival-Date: Tue, 26 Apr 2011
11:07:16 +0530

Final-Recipient: rfc822;xxx@gmail.com
Action: failed Status: 5.0.0
Diagnostic-Code: smtp;550-5.7.1
[122.178.191.78] The IP you’re using
to send mail is not authorized to
550-5.7.1 send email directly to our
servers. Please use the SMTP relay at
your 550-5.7.1 service provider
instead. Learn more at
550 5.7.1
http://mail.google.com/support/bin/answer.py?answer=10336
m9si19863225wfl.114

–9B095B5ADSN=_01CC03D260FE2C6C00000003munged?munged
Content-Type: message/rfc822

Received: from munged
([127.0.0.1]) by munged with
Microsoft SMTPSVC(6.0.2600.2180);
Tue, 26 Apr 2011 11:07:16 +0530
MIME-Version: 1.0 From: yyy@gmail.com
To: xxx@gmail.com Date: 26 Apr 2011
11:07:16 +0530 Subject: TestMail
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding:
quoted-printable Return-Path:
munged@gmail.com Message-ID:

X-OriginalArrivalTime: 26 Apr 2011
05:37:16.0515 (UTC)
FILETIME=[009D2330:01CC03D4]

This is a testmail

–9B095B5ADSN=_01CC03D260FE2C6C00000003munged?munged–

Can anyone please help me on this?

  • 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-21T15:20:17+00:00Added an answer on May 21, 2026 at 3:20 pm

    Here’s the important part of the error message:

    Diagnostic-Code: smtp;550-5.7.1 [122.178.191.78] The IP you’re using to send mail is not authorized to 550-5.7.1 send email directly to our servers. Please use the SMTP relay at your 550-5.7.1 service provider instead.

    To solve this, you’ll need to setup an SMTP relay to send to your ISP’s email servers. They’ll send to Google for you.

    For clarity:

    • This is NOT an application/code/C# problem, but an IIS problem.
    • Google will NOT accept SMTP connections from random nodes on the internet. That means: YOUR Windows XP SMTP server will not have direct sending ability.
    • You MUST send to a known good whitelisted SMTP host.
    • Your best option is to configure IIS to act as a relay to a known good SMTP server.
    • Your best bet for a known good SMTP server is your ISP’s. This is likely smtp.yourISP.com.
    • This tutorial’s Steps 2 & 3 will help you achieve this. Your ‘smart host’ will be your ISP’s SMTP server DNS name or IP address.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a newly configured Windows Server 2003 VM. One of the issues with
I have an exe configured under windows scheduler to perform timely operations on a
We have a Windows Server Web Edition 2003 Web Farm. What can we use
I have a windows service running on my local machine. It's configured to run
I have a virtual windows server with SQL Server 2008 R2 Express. for the
I have installed Team Foundation Server 2010 (basic configuration) on a Windows Server 2003
i have the following Environment: SharePoint server 2010 Windows server 2008 R2 SQL Server
I have log4net setup and configured to insert into a sql server 2005 table.
I have a CI System setup based on Jenkins on a Windows 2003 server
I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible

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.