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

  • Thread starter ahager via DotNetMonster.com
  • Start date
A

ahager via DotNetMonster.com

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 = "(e-mail address removed)";
TME.From = "(e-mail address removed)";
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\
> said:
<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);
}
}
 
N

Nicholas Paldino [.NET/C# MVP]

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]
- (e-mail address removed)

ahager via DotNetMonster.com said:
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 = "(e-mail address removed)";
TME.From = "(e-mail address removed)";
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\
> said:
<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);
}
}
 
A

ahager via DotNetMonster.com

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"
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]
 
N

Nicholas Paldino [.NET/C# MVP]

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]
- (e-mail address removed)

ahager via DotNetMonster.com said:
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"
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]
 
D

Denis Dougall

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 said:
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"
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]
 
A

ahager via DotNetMonster.com

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.

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]
 
J

James Curran

ahager via DotNetMonster.com said:
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)
 
A

ahager via DotNetMonster.com

This is a console application not a web app. Nothing about my app runs on an
IIS server.
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]
 
N

Nicholas Paldino [.NET/C# MVP]

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]
- (e-mail address removed)

ahager via DotNetMonster.com said:
This is a console application not a web app. Nothing about my app runs on
an
IIS server.
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]
 
A

ahager via DotNetMonster.com

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 said:
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]
 
D

Denis Dougall

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 said:
This is a console application not a web app. Nothing about my app runs on an
IIS server.
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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top