473,320 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

System.Web.Mail

To use the SMTP mail service from System.Web.Mail do you have to have IIS
installed on the client machien? I wanted my app to email any errors that
may of occured to me on the clients machines in the application but now it
is popping up with CDO errors (even on the machine it was working on
originally)
Nov 20 '05 #1
7 4260
Here is the full error message... it sounds like it cant talk to the server
in a sense but the server is running and i can talk to it through outlook
(its an exchange 2000 server) with no problems... also can send email with
no problems in outlook
TYPE: System.Web.HttpException

SOURCE: System.Web

TARGET SITE: System.Object CallMethod(System.Object, System.String,
System.Object[])

MSDN HELP LINK:

HASH CODE: 90

BASE EXCEPTION: System.Runtime.InteropServices.COMException (0x80040211):
The message could not be sent to the SMTP server. The transport error code
was 0x80040217. The server response was not available
INNER EXCEPTION: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x80040211): The message could
not be sent to the SMTP server. The transport error code was 0x80040217. The
server response was not available
Nov 20 '05 #2
I have client machines running my programs that use System.Web.Mail and they
do not have IIS installed.

Make sure your line

SmtpMail.SmtpServer =
Configuration.ConfigurationSettings.AppSettings("S MTPServer")

is pointing at an SMTP server (for me, this is a server on our network with
IIS and SMTP configured) and not pointing to "localhost"

HTH,
Greg
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
To use the SMTP mail service from System.Web.Mail do you have to have IIS
installed on the client machien? I wanted my app to email any errors that
may of occured to me on the clients machines in the application but now it
is popping up with CDO errors (even on the machine it was working on
originally)

Nov 20 '05 #3
smtp server is already configured this was working in the past and now it
all the sudden wont.....

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...
I have client machines running my programs that use System.Web.Mail and they do not have IIS installed.

Make sure your line

SmtpMail.SmtpServer =
Configuration.ConfigurationSettings.AppSettings("S MTPServer")

is pointing at an SMTP server (for me, this is a server on our network with IIS and SMTP configured) and not pointing to "localhost"

HTH,
Greg
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
To use the SMTP mail service from System.Web.Mail do you have to have IIS installed on the client machien? I wanted my app to email any errors that may of occured to me on the clients machines in the application but now it is popping up with CDO errors (even on the machine it was working on
originally)


Nov 20 '05 #4
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
To use the SMTP mail service from System.Web.Mail do you have to have IIS
installed on the client machien? I wanted my app to email any errors that
may of occured to me on the clients machines in the application but now it
is popping up with CDO errors (even on the machine it was working on
originally)


<URL:http://www.systemwebmail.net/>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
Hi Brian,

We do not need to installed IIS on the machine when using the
System.Web.Mail to send a mail, if we have specified the SmtpServer on the
network.

SmtpMail.SmtpServer Property
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemWebMailSmtpMailClassSmtpServerTopic.asp

Property Value
The name of the e-mail relay server. If SmtpServer is not set, the name of
the local SMTP server is used.

Remarks
If your local SMTP server (included with Windows 2000 and Windows Server
2003) is behind a firewall that blocks any direct SMTP traffic (through
port 25), you will need to find out if there is a smart host available on
your network that is allowed to relay SMTP messages to the Internet.

A smart host is an SMTP server with the permissions to relay outgoing
e-mail messages directly to the Internet from internal SMTP servers. A
smart host should be able to simultaneously connect to both the internal
network and the Internet in order to work as the e-mail gateway.

For information about configuring your local SMTP server, see the articles
"Manage Your Company's E-mail with the Windows 2000 SMTP Service" and
"Using SMTP for Outgoing Messages" in the MSDN library at
http://msdn.microsoft.com.
In addition to Herfried's suggestion, I think you may try to send the mail
using OE(outlook express) via the smtp server you specified in your
application to see if this works for you, so that we can isolate the
problem.

You may have a try and let me know the result.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #6
thanks for the info

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:Pd**************@cpmsftngxa10.phx.gbl...
Hi Brian,

We do not need to installed IIS on the machine when using the
System.Web.Mail to send a mail, if we have specified the SmtpServer on the network.

SmtpMail.SmtpServer Property
http://msdn.microsoft.com/library/de...us/cpref/html/ frlrfSystemWebMailSmtpMailClassSmtpServerTopic.asp

Property Value
The name of the e-mail relay server. If SmtpServer is not set, the name of
the local SMTP server is used.

Remarks
If your local SMTP server (included with Windows 2000 and Windows Server
2003) is behind a firewall that blocks any direct SMTP traffic (through
port 25), you will need to find out if there is a smart host available on
your network that is allowed to relay SMTP messages to the Internet.

A smart host is an SMTP server with the permissions to relay outgoing
e-mail messages directly to the Internet from internal SMTP servers. A
smart host should be able to simultaneously connect to both the internal
network and the Internet in order to work as the e-mail gateway.

For information about configuring your local SMTP server, see the articles
"Manage Your Company's E-mail with the Windows 2000 SMTP Service" and
"Using SMTP for Outgoing Messages" in the MSDN library at
http://msdn.microsoft.com.
In addition to Herfried's suggestion, I think you may try to send the mail
using OE(outlook express) via the smtp server you specified in your
application to see if this works for you, so that we can isolate the
problem.

You may have a try and let me know the result.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #7
Peter,

I've been searching, on and off, for several weeks looking for
information related to the subject of this email thread. It wasn't
until you responded and included the code 0X80040127 in the text of
your response, that I finally got a hit that looked related to my
question.

I am using Outlook automation using CDO within Visual Foxpro, and
instead of an SMTP server, I make reference to our company's mail
server. Here's part of the code:

..Subject = "This is the subject line"
..TextBody = "This is the body of the message"
..Configuration.FIELDS("http://schemas.microsoft.com/cdo/configuration/sendusing").VALUE
= 2
..Configuration.FIELDS("http://schemas.microsoft.com/cdo/configuration/smtpserver").VALUE
= "??????"
..Configuration.FIELDS("http://schemas.microsoft.com/cdo/configuration/smtpserverport").VALUE
= 25
-- Where ????? is the name of our Microsoft Exchange Server.

This has worked fine until I ran into someone who has Yahoo DSL, and
it fails with this message:

"OLE Dispatch Exception Code 0 from ? The message could not be sent
to the SMTP server. The Transport error code was 0X80040217. The
server response was not available."

Any ideas out there? Thanks,

Dave
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Trond A. S. Andersen | last post by:
Hi, all! I'm trying to use the System.Web.Mail. "package" combinded with System.Web.Mail.SmtpMail in order to send MS Excel spreadsheets attached to mail messages. However, sending one single...
3
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
3
by: pmud | last post by:
Hi, I have ab ASP.Net Application in which I need to send e-mail on button click. Even though my C# code for that is correct.I am getting the following error:: I think the following error can be...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console...
1
by: theWizard1 | last post by:
The following sends my email, but the attachment is empty. The attachment should contain the data that is in the string that was created from the xmlReader. I have a stored procedure written...
2
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to...
10
by: Frank | last post by:
Hi, I am hoping to find out the differences between the System.Net.Mail and System.Web.Mail. Can some nice folks post the differences; or some urls which show the differences? Great Thanks...
2
by: satnamsarai | last post by:
Using System.Net.Mail: Sometimes I get error 'failure sending mail. Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.' Not sure how...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.