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

Couple of questions on System.web.mail

P: n/a
I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?
I am using this component. It works fine when I give the
IP address of the mail server. But when I give the full
hostname of the mail server it gives me an error.

Can anyone help me with this??

Thanks in advance

Ricky

Nov 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
What error did you get?
If you are using a server name for the smtp server the machine running your
code has to be able to resolve that name (it is a TCP/IP issue).
Also, you do not need IIS on the machine running your code. The SMTP server,
however, may be an IIS server running the SMTP service.

Telmo Sampaio

"Ricky" <an*******@discussions.microsoft.com> wrote in message
news:21****************************@phx.gbl...
I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?
I am using this component. It works fine when I give the
IP address of the mail server. But when I give the full
hostname of the mail server it gives me an error.

Can anyone help me with this??

Thanks in advance

Ricky

Nov 20 '05 #2

P: n/a
I got the following error:

An unhandled exception of type 'System.Web.HttpException'
occurred in system.web.dll

Additional information: Could not access 'CDO.Message'
object.

-----Original Message-----
What error did you get?
If you are using a server name for the smtp server the machine running yourcode has to be able to resolve that name (it is a TCP/IP issue).Also, you do not need IIS on the machine running your code. The SMTP server,however, may be an IIS server running the SMTP service.

Telmo Sampaio

"Ricky" <an*******@discussions.microsoft.com> wrote in messagenews:21****************************@phx.gbl...
I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?
I am using this component. It works fine when I give the IP address of the mail server. But when I give the full
hostname of the mail server it gives me an error.

Can anyone help me with this??

Thanks in advance

Ricky

.

Nov 20 '05 #3

P: n/a
* "Ricky" <an*******@discussions.microsoft.com> scripsit:
I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
Yes.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?


The SMTP service and CDO need to be installed, AFAIK.

For more information on this webspace, take a look at
<URL:http://www.systemwebmail.net/>.

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

P: n/a
Thank you for the reply but I still have some more
question on this.

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
Yes.


So this componenet does not work on Win 98/Me?
2) Does sending email using this component need IIS
installed on the machines from where the email is being sent?


The SMTP service and CDO need to be installed, AFAIK.


So when the clients use my application their system must
have SMTP Service and CDO installed on their machines?

How can I install the CDO on their machines.Do I need to
take the CDO dll and register it on their machines?? Can
you tell me what exactly I will need to do if I need to
register the SMTP Servcie or the CDO on my client
machines.



-----Original Message-----
* "Ricky" <an*******@discussions.microsoft.com> scripsit:
I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.


Yes.
2) Does sending email using this component need IIS
installed on the machines from where the email is being sent?


The SMTP service and CDO need to be installed, AFAIK.

For more information on this webspace, take a look at
<URL:http://www.systemwebmail.net/>.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
.

Nov 20 '05 #5

P: n/a
You need CDO. It should be there for Windows OS's, and only Windows OS's.
You do not need the SMTP Service, just access to a machine that runs it
(your SMTP server).

Telmo Sampaio
<an*******@discussions.microsoft.com> wrote in message
news:23****************************@phx.gbl...
I got the following error:

An unhandled exception of type 'System.Web.HttpException'
occurred in system.web.dll

Additional information: Could not access 'CDO.Message'
object.

-----Original Message-----
What error did you get?
If you are using a server name for the smtp server the

machine running your
code has to be able to resolve that name (it is a TCP/IP

issue).
Also, you do not need IIS on the machine running your

code. The SMTP server,
however, may be an IIS server running the SMTP service.

Telmo Sampaio

"Ricky" <an*******@discussions.microsoft.com> wrote in

message
news:21****************************@phx.gbl...
I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?
I am using this component. It works fine when I give the IP address of the mail server. But when I give the full
hostname of the mail server it gives me an error.

Can anyone help me with this??

Thanks in advance

Ricky

.

Nov 20 '05 #6

P: n/a
* "Ricky" <an*******@discussions.microsoft.com> scripsit:
1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
Yes.


So this componenet does not work on Win 98/Me?


Right, it doesn't work there.
2) Does sending email using this component need IIS
installed on the machines from where the email is being sent?


The SMTP service and CDO need to be installed, AFAIK.


So when the clients use my application their system must
have SMTP Service and CDO installed on their machines?


AFAIK Yes. I never played around with that, so I am not able to give your
more information on that, but I strongly recommend to take a look at the
website I mentioned in my last post.

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

P: n/a

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2m************@uni-berlin.de...
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?


The SMTP service and CDO need to be installed, AFAIK.


I think when the poster said "sent" he meant "created" or "generated." In
that case, I don't believe you need an SMTP server on THAT machine.
Nov 20 '05 #8

P: n/a

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2m************@uni-berlin.de...
The SMTP service and CDO need to be installed, AFAIK.


So when the clients use my application their system must
have SMTP Service and CDO installed on their machines?


AFAIK Yes. I never played around with that, so I am not able to give your
more information on that, but I strongly recommend to take a look at the
website I mentioned in my last post.


If System.Web.Mail simply uses CDOSYS behind the scenes, you don't need an
SMTP server on the machine that's creating the email message. I've
personally used CDOSYS from my WindowsXP machine in non-.NET languages to
send mail to a different server and I have no SMTP server on mine.
Nov 20 '05 #9

P: n/a
* "Jeff Johnson [MVP: VB]" <i.***@enough.spam> scripsit:
AFAIK Yes. I never played around with that, so I am not able to give your
more information on that, but I strongly recommend to take a look at the
website I mentioned in my last post.


If System.Web.Mail simply uses CDOSYS behind the scenes, you don't need an
SMTP server on the machine that's creating the email message. I've
personally used CDOSYS from my WindowsXP machine in non-.NET languages to
send mail to a different server and I have no SMTP server on mine.


ACK, you can specify another SMTP server than the local SMTP server, and
thus won't need to have a local SMTP server running.

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

P: n/a
It worked finally. I followed the deirections given in
suggestion6 of this web page
http://www.systemwebmail.net/faq/4.2.3.aspx

One last question.

Can I send email to a person's mailid outside the
hostname i am specifying.
i.e If mail server hostname - "abc.com"
I can send email to "jo**@abc.com" but can I send it
to "jo**@yahoo.com" also??

I'll keep trying

Thanks a lot



-----Original Message-----
* "Jeff Johnson [MVP: VB]" <i.***@enough.spam> scripsit:
AFAIK Yes. I never played around with that, so I am not able to give your more information on that, but I strongly recommend to take a look at the website I mentioned in my last post.
If System.Web.Mail simply uses CDOSYS behind the scenes, you don't need an SMTP server on the machine that's creating the email message. I've personally used CDOSYS from my WindowsXP machine in non-.NET languages to send mail to a different server and I have no SMTP

server on mine.
ACK, you can specify another SMTP server than the local SMTP server, andthus won't need to have a local SMTP server running.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
.

Nov 20 '05 #11

P: n/a

"Ricky" <an*******@discussions.microsoft.com> wrote in message
news:25****************************@phx.gbl...
It worked finally. I followed the deirections given in
suggestion6 of this web page
http://www.systemwebmail.net/faq/4.2.3.aspx

One last question.

Can I send email to a person's mailid outside the
hostname i am specifying.
i.e If mail server hostname - "abc.com"
I can send email to "jo**@abc.com" but can I send it
to "jo**@yahoo.com" also??


As long as either

A) YOU are authenticating to the mail server as a user in the abc.com
domain, because generally mail servers will route mail for their own people
or
B) Your mail server has been set to allow routing. This is rare because it
opens up the potential for SPAM.
Nov 20 '05 #12

P: n/a


-----Original Message-----

"Ricky" <an*******@discussions.microsoft.com> wrote in messagenews:25****************************@phx.gbl...
It worked finally. I followed the deirections given in
suggestion6 of this web page
http://www.systemwebmail.net/faq/4.2.3.aspx

One last question.

Can I send email to a person's mailid outside the
hostname i am specifying.
i.e If mail server hostname - "abc.com"
I can send email to "jo**@abc.com" but can I send it
to "jo**@yahoo.com" also??
As long as either

A) YOU are authenticating to the mail server as a user

in the abc.comdomain, because generally mail servers will route mail for their own peopleor
B) Your mail server has been set to allow routing. This is rare because itopens up the potential for SPAM.
.

Nov 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.