By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

+ InnerException {"The message could not be sent to the SMTP server. The transpo

P: n/a
I am receiving this messaage in a console application I wrote, I am
authenticating, and my network admin swears their is nothing wrong with the
smtp server. Any ideas?

public void Mail_update()
{
try
{
System.Web.Mail.MailMessage TME = new MailMessage();
TME.To = "ad**********@hotmail.com";
TME.From = "Da*********@QedData.com";
TME.Body ="<HTML><HEAD><TITLE>Scholastic Needs Your
Help</TITLE></HEAD><BODY lang=EN-US vLink=blue link=blue><DIV lang=en-us
dir=ltr align=left><FONT face=\"Times New Roman\"size=3><SPAN style=\"FONT-
SIZE: 12pt\"><o:p>&nbsp;</o:p></SPAN></FONT></DIV>";
TME.Body += "<DIV><P style=\"TEXT-ALIGN: center\" align=center><FONT
face=\"Times New Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"><IMG
id=_x0000_i1025 height=21 src=\"http://www.hellerreports.com/RedBar.jpg\"
width=154 border=0 NOSEND=\"1\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><B><FONT face=Arial size=3><SPAN style=\"FONT-WEIGHT: bold; FONT-
SIZE: 12pt; FONT-FAMILY: Arial\">Scholastic Needs Your Help!
</SPAN></FONT></B><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><B><FONT face=Arial size=3><SPAN style=\"FONT-WEIGHT: bold; FONT-
SIZE: 12pt; FONT-FAMILY: Arial\">Make sure your school's information is up-to-
date.</SPAN></FONT></B><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"> <SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"><SPAN &nbsp;</SPAN><SPAN style=\"FONT-SIZE: 10pt\
"><o:p></o:p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=Arial
size=2><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\">Dear School
Secretary,</SPAN></FONT><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\">Scholastic and QED want to make sure our records
are current and need your help!&nbsp;&nbsp;Our records indicate that over the
last week the following&nbsp;teachers have&nbsp;joined your staff</SPAN>:
<SPAN style=\"FONT-SIZE: 10pt\"><o:p></o:p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=2><SPAN style=\"FONT-SIZE: 10pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"></SPAN></SPAN>&nbsp;</P>";

for(int x = 0; x < sendFirstName.Length; x++)
{
TME.Body += "<SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\">" +
sendFirstName[x] + " " + "<SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\
">" + sendLastName[x]+"<br>";
}
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"> <SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"><SPAN &nbsp;</SPAN><SPAN style=\"FONT-SIZE: 10pt\
"><o:p></o:p></SPAN></P>";
TME.Body += "<![if !supportLists]><![endif]><![if !supportLists]><![endif]
<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New Roman\" size=2><SPAN

style=\"FONT-SIZE: 10pt\">&nbsp;<o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\">Please reply to this message and inform us if the
above teachers are replacing teachers who have since moved on.&nbsp; We
appreciate your help and want to ensure that your school continues to receive
orders and information in the most timely and accurate&nbsp;fashion possible.
&nbsp;</SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"></SPAN>&nbsp;</P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\">&nbsp;</SPAN>We appreciate your help as we work to
serve you better.</SPAN><SPAN style=\"FONT-SIZE: 10pt\"><o:p></o:
p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=2><SPAN style=\"FONT-SIZE: 10pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=\"Times New Roman\" size=2><SPAN style=\"FONT-SIZE:
10pt\"><IMG id=_x0000_i1026 height=47 src=\"
http://www.hellerreports.com/red.jpg\" width=72 border=0 NOSEND=\"1\
"></SPAN></FONT><FONT size=1><SPAN Style=\"FONT-SIZE: 8pt\"><o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">Quality Education Data</SPAN></FONT><FONT size=1><SPAN style=\
"FONT-SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">1625 Broadway, Suite 250</SPAN></FONT><FONT size=1><SPAN
style=\"FONT-SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">Denver, CO 80202</SPAN></FONT><FONT size=1><SPAN style=\"FONT-
SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">800.525.5811</SPAN></FONT><FONT size=1><SPAN style=\"FONT-
SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=\"Times New Roman\" size=1><SPAN style=\"FONT-SIZE:
8pt\">&nbsp;<o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"TEXT-ALIGN: center\" align=center><FONT
face=Arial size=1><SPAN style=\"FONT-SIZE: 7.5pt; FONT-FAMILY: Arial\
">________________________________________________ _________<BR>You are on the
Quality Education Data (QED) Email List. To take your email address off of
the list for future messages from <BR>Quality Education Data (QED), please
reply to this message and place \"Remove\" in the subject line.
</SPAN></FONT>";
TME.Body +="<FONT face=Arial><SPAN style=\"FONT-FAMILY: Arial\"><o:p></o:
p></SPAN></FONT></P></DIV><P align=center>&nbsp;</P></BODY></HTML>";
TME.Subject = "Scholastic Needs Your Help";
TME.BodyFormat = System.Web.Mail.MailFormat.Html;
System.Web.Mail.SmtpMail.SmtpServer = "Bizmail.Scholastic.com";
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/sendusername", "Data_Update");
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/sendpassword", "Welcome1");
System.Web.Mail.SmtpMail.Send(TME);
}
catch(System.Exception e)
{
System.Console.WriteLine(e.Message);
}
}
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1
Nov 17 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
Instead of posting all of the HTML code, could you post the complete
exception message? The information in the subject line was cut off.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ahager via DotNetMonster.com" <u14368@uwe> wrote in message
news:56c580742eec1@uwe...
I am receiving this messaage in a console application I wrote, I am
authenticating, and my network admin swears their is nothing wrong with
the
smtp server. Any ideas?

public void Mail_update()
{
try
{
System.Web.Mail.MailMessage TME = new MailMessage();
TME.To = "ad**********@hotmail.com";
TME.From = "Da*********@QedData.com";
TME.Body ="<HTML><HEAD><TITLE>Scholastic Needs Your
Help</TITLE></HEAD><BODY lang=EN-US vLink=blue link=blue><DIV lang=en-us
dir=ltr align=left><FONT face=\"Times New Roman\"size=3><SPAN
style=\"FONT-
SIZE: 12pt\"><o:p>&nbsp;</o:p></SPAN></FONT></DIV>";
TME.Body += "<DIV><P style=\"TEXT-ALIGN: center\" align=center><FONT
face=\"Times New Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"><IMG
id=_x0000_i1025 height=21 src=\"http://www.hellerreports.com/RedBar.jpg\"
width=154 border=0 NOSEND=\"1\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><B><FONT face=Arial size=3><SPAN style=\"FONT-WEIGHT: bold;
FONT-
SIZE: 12pt; FONT-FAMILY: Arial\">Scholastic Needs Your Help!
</SPAN></FONT></B><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><B><FONT face=Arial size=3><SPAN style=\"FONT-WEIGHT: bold;
FONT-
SIZE: 12pt; FONT-FAMILY: Arial\">Make sure your school's information is
up-to-
date.</SPAN></FONT></B><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"> <SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"><SPAN &nbsp;</SPAN><SPAN style=\"FONT-SIZE:
10pt\
"><o:p></o:p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=Arial
size=2><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\">Dear School
Secretary,</SPAN></FONT><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\">Scholastic and QED want to make sure our
records
are current and need your help!&nbsp;&nbsp;Our records indicate that over
the
last week the following&nbsp;teachers have&nbsp;joined your staff</SPAN>:
<SPAN style=\"FONT-SIZE: 10pt\"><o:p></o:p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=2><SPAN style=\"FONT-SIZE: 10pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"></SPAN></SPAN>&nbsp;</P>";

for(int x = 0; x < sendFirstName.Length; x++)
{
TME.Body += "<SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\">" +
sendFirstName[x] + " " + "<SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY:
Arial\
">" + sendLastName[x]+"<br>";
}
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"> <SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"><SPAN &nbsp;</SPAN><SPAN style=\"FONT-SIZE:
10pt\
"><o:p></o:p></SPAN></P>";
TME.Body += "<![if !supportLists]><![endif]><![if !supportLists]><![endif]
<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New Roman\"
size=2><SPAN

style=\"FONT-SIZE: 10pt\">&nbsp;<o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\">Please reply to this message and inform us if
the
above teachers are replacing teachers who have since moved on.&nbsp; We
appreciate your help and want to ensure that your school continues to
receive
orders and information in the most timely and accurate&nbsp;fashion
possible.
&nbsp;</SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"></SPAN>&nbsp;</P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\">&nbsp;</SPAN>We appreciate your help as we work
to
serve you better.</SPAN><SPAN style=\"FONT-SIZE: 10pt\"><o:p></o:
p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=2><SPAN style=\"FONT-SIZE: 10pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\">&nbsp;<o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=\"Times New Roman\" size=2><SPAN
style=\"FONT-SIZE:
10pt\"><IMG id=_x0000_i1026 height=47 src=\"
http://www.hellerreports.com/red.jpg\" width=72 border=0 NOSEND=\"1\
"></SPAN></FONT><FONT size=1><SPAN Style=\"FONT-SIZE: 8pt\"><o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">Quality Education Data</SPAN></FONT><FONT size=1><SPAN
style=\
"FONT-SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">1625 Broadway, Suite 250</SPAN></FONT><FONT size=1><SPAN
style=\"FONT-SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">Denver, CO 80202</SPAN></FONT><FONT size=1><SPAN
style=\"FONT-
SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">800.525.5811</SPAN></FONT><FONT size=1><SPAN style=\"FONT-
SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=\"Times New Roman\" size=1><SPAN
style=\"FONT-SIZE:
8pt\">&nbsp;<o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"TEXT-ALIGN: center\" align=center><FONT
face=Arial size=1><SPAN style=\"FONT-SIZE: 7.5pt; FONT-FAMILY: Arial\
">________________________________________________ _________<BR>You are on
the
Quality Education Data (QED) Email List. To take your email address off of
the list for future messages from <BR>Quality Education Data (QED), please
reply to this message and place \"Remove\" in the subject line.
</SPAN></FONT>";
TME.Body +="<FONT face=Arial><SPAN style=\"FONT-FAMILY: Arial\"><o:p></o:
p></SPAN></FONT></P></DIV><P align=center>&nbsp;</P></BODY></HTML>";
TME.Subject = "Scholastic Needs Your Help";
TME.BodyFormat = System.Web.Mail.MailFormat.Html;
System.Web.Mail.SmtpMail.SmtpServer = "Bizmail.Scholastic.com";
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/sendusername",
"Data_Update");
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/sendpassword", "Welcome1");
System.Web.Mail.SmtpMail.Send(TME);
}
catch(System.Exception e)
{
System.Console.WriteLine(e.Message);
}
}
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1

Nov 17 '05 #2

P: n/a
The inner exception is "The message could not be sent to the SMTP server. The
transport error code was 0x80040217. The server response was not available"

Nicholas Paldino [.NET/C# MVP] wrote:
Instead of posting all of the HTML code, could you post the complete
exception message? The information in the subject line was cut off.
I am receiving this messaage in a console application I wrote, I am
authenticating, and my network admin swears their is nothing wrong with

[quoted text clipped - 164 lines]
}
}

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1
Nov 17 '05 #3

P: n/a
Do you have a local SMTP server set up? You need this in order to send
messages, I believe.

You might want to consider the Indy Project, as it has classes that do
not have this requirement.

Also, if you are using .NET 2.0, you can use the classes in the
System.Net.Mail namespace, which do not have this requirement either.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ahager via DotNetMonster.com" <u14368@uwe> wrote in message
news:56c5a423526ef@uwe...
The inner exception is "The message could not be sent to the SMTP server.
The
transport error code was 0x80040217. The server response was not
available"

Nicholas Paldino [.NET/C# MVP] wrote:
Instead of posting all of the HTML code, could you post the complete
exception message? The information in the subject line was cut off.
I am receiving this messaage in a console application I wrote, I am
authenticating, and my network admin swears their is nothing wrong with

[quoted text clipped - 164 lines]
}
}

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1

Nov 17 '05 #4

P: n/a
Try it without the smtpserver to check to see if the server can even send
SMTP. I was going to say send authentication but I scrolled through your
hundred miles of html "stuff" and found it, however, I think you should
specify configuration.fields..

HTH,

Denis

"ahager via DotNetMonster.com" <u14368@uwe> wrote in message
news:56c5a423526ef@uwe...
The inner exception is "The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available"
Nicholas Paldino [.NET/C# MVP] wrote:
Instead of posting all of the HTML code, could you post the complete
exception message? The information in the subject line was cut off.
I am receiving this messaage in a console application I wrote, I am
authenticating, and my network admin swears their is nothing wrong with

[quoted text clipped - 164 lines]
}
}

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1

Nov 17 '05 #5

P: n/a
yes we do have a local smtp server set up and it does work as i can ping and
telnet to it. We are not running .net2.0 yet.

Nicholas Paldino [.NET/C# MVP] wrote:
Do you have a local SMTP server set up? You need this in order to send
messages, I believe.

You might want to consider the Indy Project, as it has classes that do
not have this requirement.

Also, if you are using .NET 2.0, you can use the classes in the
System.Net.Mail namespace, which do not have this requirement either.
The inner exception is "The message could not be sent to the SMTP server.
The

[quoted text clipped - 9 lines]
}
}

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1
Nov 17 '05 #6

P: n/a
"ahager via DotNetMonster.com" <u14368@uwe> wrote in message
news:56c5d2793b205@uwe...
yes we do have a local smtp server set up and it does work as i can ping and telnet to it. We are not running .net2.0 yet.


I don't think you grasp what we mean be "local". For the .Net v1.1
System.Web.Mail classes to work, the SMTP server must be the same machine as
the IIS server. (Yes, this is stupid --- that is presumably why they fixed
it in .Net v2.0)
Nov 17 '05 #7

P: n/a
This is a console application not a web app. Nothing about my app runs on an
IIS server.

ahager wrote:
yes we do have a local smtp server set up and it does work as i can ping and
telnet to it. We are not running .net2.0 yet.
Do you have a local SMTP server set up? You need this in order to send
messages, I believe.

[quoted text clipped - 10 lines]
> }
> }

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1
Nov 17 '05 #8

P: n/a
Yes, but you need the SMTP server installed locally in order to use the
classes in the System.Web.Mail namespace.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ahager via DotNetMonster.com" <u14368@uwe> wrote in message
news:56c637d23b683@uwe...
This is a console application not a web app. Nothing about my app runs on
an
IIS server.

ahager wrote:
yes we do have a local smtp server set up and it does work as i can ping
and
telnet to it. We are not running .net2.0 yet.
Do you have a local SMTP server set up? You need this in order to
send
messages, I believe.

[quoted text clipped - 10 lines]
>> }
>> }

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1

Nov 17 '05 #9

P: n/a
I tried removing the smtp server, the code executed with no errors however an
email was never received. Configuration.fields is a member of what? I don't
know what you mean by configuration.fields.

Denis Dougall wrote:
Try it without the smtpserver to check to see if the server can even send
SMTP. I was going to say send authentication but I scrolled through your
hundred miles of html "stuff" and found it, however, I think you should
specify configuration.fields..

HTH,

Denis
The inner exception is "The message could not be sent to the SMTP server. The
transport error code was 0x80040217. The server response was not available"

[quoted text clipped - 7 lines]
>> }
>> }

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1
Nov 17 '05 #10

P: n/a
Let's see if we can simplify our questions to help fix your problem. If you
run an app from your computer it programatically must authenticate to the
SMTP server. Since it is not a web app you can not authenticate using the
web auth schema you had it the HTML provided. Your LOCAL app must
impersonate to SMTP relay in order to send email or launch the local SMTP
protocol. In which case drop the smtpserver parameter.

Seems simple enough to me,

Denis
"ahager via DotNetMonster.com" <u14368@uwe> wrote in message
news:56c637d23b683@uwe...
This is a console application not a web app. Nothing about my app runs on an IIS server.

ahager wrote:
yes we do have a local smtp server set up and it does work as i can ping andtelnet to it. We are not running .net2.0 yet.
Do you have a local SMTP server set up? You need this in order to sendmessages, I believe.

[quoted text clipped - 10 lines]
>> }
>> }

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1

Nov 17 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.