473,597 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Q: Using SmtpClient on a client computer not possible?

Hi!

I am trying to send a Mail using SmtpClient on my developer computer. Is it
not possible?
Do i have to use it on a computer with IIS installed?

If it is possible, what should i be thinking of? Any given points of
direction would be greatly appreciated.

Regards
Martin
Aug 30 '06 #1
8 1533
For the server IIS has to be installed.

Because of the CDO in the client you have to use operating systems beginning
with Windows 2000.

(W98, Me and NT4 SP6 have that not)

Cor
"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.netschr eef
in bericht news:O6******** ******@TK2MSFTN GP04.phx.gbl...
Hi!

I am trying to send a Mail using SmtpClient on my developer computer. Is
it not possible?
Do i have to use it on a computer with IIS installed?

If it is possible, what should i be thinking of? Any given points of
direction would be greatly appreciated.

Regards
Martin

Aug 30 '06 #2
Follow up question then!

Should it work on a windows 2003 professional?
I have 2003 pro, and i cant get it to work...

Regards
Martin
"Cor Ligthert [MVP]" <no************ @planet.nlskrev i meddelandet
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
For the server IIS has to be installed.

Because of the CDO in the client you have to use operating systems
beginning with Windows 2000.

(W98, Me and NT4 SP6 have that not)

Cor
"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.netschr eef
in bericht news:O6******** ******@TK2MSFTN GP04.phx.gbl...
>Hi!

I am trying to send a Mail using SmtpClient on my developer computer. Is
it not possible?
Do i have to use it on a computer with IIS installed?

If it is possible, what should i be thinking of? Any given points of
direction would be greatly appreciated.

Regards
Martin


Aug 30 '06 #3
Martin,

It should, however 2003 is in different ways something a strange acting OS
(it needs its own framework and updates for that), so I will not say
definitely, it is not made as a client computer.

Cor

"Martin Arvidsson" <ye*******@ms.c omschreef in bericht
news:eE******** ******@TK2MSFTN GP04.phx.gbl...
Follow up question then!

Should it work on a windows 2003 professional?
I have 2003 pro, and i cant get it to work...

Regards
Martin
"Cor Ligthert [MVP]" <no************ @planet.nlskrev i meddelandet
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>For the server IIS has to be installed.

Because of the CDO in the client you have to use operating systems
beginning with Windows 2000.

(W98, Me and NT4 SP6 have that not)

Cor
"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.net>
schreef in bericht news:O6******** ******@TK2MSFTN GP04.phx.gbl...
>>Hi!

I am trying to send a Mail using SmtpClient on my developer computer. Is
it not possible?
Do i have to use it on a computer with IIS installed?

If it is possible, what should i be thinking of? Any given points of
direction would be greatly appreciated.

Regards
Martin



Aug 31 '06 #4
So... what you are saying is that

If i have windows 2003 pro, net 2.0 and using the SmtpClient. i will not be
able to send mail?

The only way is to use it on a server where IIS is installed along with SMTP
Server?

I just cant get it, how can outlook send mail via SMTP?

I am using my providers SMTP address to sending the mail thru my app,

Regards
Martin

"Cor Ligthert [MVP]" <no************ @planet.nlskrev i meddelandet
news:eZ******** ******@TK2MSFTN GP03.phx.gbl...
Martin,

It should, however 2003 is in different ways something a strange acting OS
(it needs its own framework and updates for that), so I will not say
definitely, it is not made as a client computer.

Cor

"Martin Arvidsson" <ye*******@ms.c omschreef in bericht
news:eE******** ******@TK2MSFTN GP04.phx.gbl...
>Follow up question then!

Should it work on a windows 2003 professional?
I have 2003 pro, and i cant get it to work...

Regards
Martin
"Cor Ligthert [MVP]" <no************ @planet.nlskrev i meddelandet
news:%2******* *********@TK2MS FTNGP06.phx.gbl ...
>>For the server IIS has to be installed.

Because of the CDO in the client you have to use operating systems
beginning with Windows 2000.

(W98, Me and NT4 SP6 have that not)

Cor
"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.net>
schreef in bericht news:O6******** ******@TK2MSFTN GP04.phx.gbl...
Hi!

I am trying to send a Mail using SmtpClient on my developer computer.
Is it not possible?
Do i have to use it on a computer with IIS installed?

If it is possible, what should i be thinking of? Any given points of
direction would be greatly appreciated.

Regards
Martin



Aug 31 '06 #5
No, SmtpClient needs an Smtp service running somewhere, this can be any SMTP
(RFC821) server running locally (IIS5 and up offers this SMTP service as an
option) if you want, but it can also be a remote (ISP) server running an
SmtpMail service (or deamon).

Willy.
"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.netwrot e in
message news:e8******** ******@TK2MSFTN GP05.phx.gbl...
| So... what you are saying is that
|
| If i have windows 2003 pro, net 2.0 and using the SmtpClient. i will not
be
| able to send mail?
|
| The only way is to use it on a server where IIS is installed along with
SMTP
| Server?
|
| I just cant get it, how can outlook send mail via SMTP?
|
| I am using my providers SMTP address to sending the mail thru my app,
|
| Regards
| Martin
|
| "Cor Ligthert [MVP]" <no************ @planet.nlskrev i meddelandet
| news:eZ******** ******@TK2MSFTN GP03.phx.gbl...
| Martin,
| >
| It should, however 2003 is in different ways something a strange acting
OS
| (it needs its own framework and updates for that), so I will not say
| definitely, it is not made as a client computer.
| >
| Cor
| >
| "Martin Arvidsson" <ye*******@ms.c omschreef in bericht
| news:eE******** ******@TK2MSFTN GP04.phx.gbl...
| >Follow up question then!
| >>
| >Should it work on a windows 2003 professional?
| >I have 2003 pro, and i cant get it to work...
| >>
| >Regards
| >Martin
| >>
| >>
| >"Cor Ligthert [MVP]" <no************ @planet.nlskrev i meddelandet
| >news:%2******* *********@TK2MS FTNGP06.phx.gbl ...
| >>For the server IIS has to be installed.
| >>>
| >>Because of the CDO in the client you have to use operating systems
| >>beginning with Windows 2000.
| >>>
| >>(W98, Me and NT4 SP6 have that not)
| >>>
| >>Cor
| >>>
| >>>
| >>"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.net>
| >>schreef in bericht news:O6******** ******@TK2MSFTN GP04.phx.gbl...
| >>>Hi!
| >>>>
| >>>I am trying to send a Mail using SmtpClient on my developer computer.
| >>>Is it not possible?
| >>>Do i have to use it on a computer with IIS installed?
| >>>>
| >>>If it is possible, what should i be thinking of? Any given points of
| >>>direction would be greatly appreciated.
| >>>>
| >>>Regards
| >>>Martin
| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|
Aug 31 '06 #6
Hmm...

On the serveraddress property i enter my sp's smtp address, but it is unable
to connect.
Hmm, why?

Well well, i have to investigate further.

Thanx for help so far.

Regards
Martin

"Willy Denoyette [MVP]" <wi************ *@telenet.beskr ev i meddelandet
news:u8******** ******@TK2MSFTN GP06.phx.gbl...
No, SmtpClient needs an Smtp service running somewhere, this can be any
SMTP
(RFC821) server running locally (IIS5 and up offers this SMTP service as
an
option) if you want, but it can also be a remote (ISP) server running an
SmtpMail service (or deamon).

Willy.
"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.netwrot e
in
message news:e8******** ******@TK2MSFTN GP05.phx.gbl...
| So... what you are saying is that
|
| If i have windows 2003 pro, net 2.0 and using the SmtpClient. i will not
be
| able to send mail?
|
| The only way is to use it on a server where IIS is installed along with
SMTP
| Server?
|
| I just cant get it, how can outlook send mail via SMTP?
|
| I am using my providers SMTP address to sending the mail thru my app,
|
| Regards
| Martin
|
| "Cor Ligthert [MVP]" <no************ @planet.nlskrev i meddelandet
| news:eZ******** ******@TK2MSFTN GP03.phx.gbl...
| Martin,
| >
| It should, however 2003 is in different ways something a strange
acting
OS
| (it needs its own framework and updates for that), so I will not say
| definitely, it is not made as a client computer.
| >
| Cor
| >
| "Martin Arvidsson" <ye*******@ms.c omschreef in bericht
| news:eE******** ******@TK2MSFTN GP04.phx.gbl...
| >Follow up question then!
| >>
| >Should it work on a windows 2003 professional?
| >I have 2003 pro, and i cant get it to work...
| >>
| >Regards
| >Martin
| >>
| >>
| >"Cor Ligthert [MVP]" <no************ @planet.nlskrev i meddelandet
| >news:%2******* *********@TK2MS FTNGP06.phx.gbl ...
| >>For the server IIS has to be installed.
| >>>
| >>Because of the CDO in the client you have to use operating systems
| >>beginning with Windows 2000.
| >>>
| >>(W98, Me and NT4 SP6 have that not)
| >>>
| >>Cor
| >>>
| >>>
| >>"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.net>
| >>schreef in bericht news:O6******** ******@TK2MSFTN GP04.phx.gbl...
| >>>Hi!
| >>>>
| >>>I am trying to send a Mail using SmtpClient on my developer
computer.
| >>>Is it not possible?
| >>>Do i have to use it on a computer with IIS installed?
| >>>>
| >>>If it is possible, what should i be thinking of? Any given points
of
| >>>direction would be greatly appreciated.
| >>>>
| >>>Regards
| >>>Martin
| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|


Aug 31 '06 #7

"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.netwrot e in
message news:um******** ******@TK2MSFTN GP02.phx.gbl...
| Hmm...
|
| On the serveraddress property i enter my sp's smtp address, but it is
unable
| to connect.
| Hmm, why?
|
| Well well, i have to investigate further.
|
| Thanx for help so far.
|

Are you sure you don't need to authenticate when connecting to your ISP SMTP
mail server?

Willy.
Aug 31 '06 #8
I Have tried that to. I just cant figure out whats wrong.

And the only message i get is "Cant connect to remote: smtp.dgcsystems .net"

I have triple checked that i have spelled it correct.

I can resolve the IP number for the smtp address using Sockets in .NET but
it seems like the SmtpClient fails to do that, why i am not sure. So
probable it cant do a DNS resolve. I entered the ip address instead of the
smtp.dgcsystems .net, just for a test. But i got the message: "Cant connect
to remote: xxx.xxx.xxx.xxx " X= ip address.

Regards
Martin

"Willy Denoyette [MVP]" <wi************ *@telenet.beskr ev i meddelandet
news:eS******** ********@TK2MSF TNGP03.phx.gbl. ..
>
"Visual Systems AB (Martin Arvidsson)" <ma************ **@vsab.netwrot e
in
message news:um******** ******@TK2MSFTN GP02.phx.gbl...
| Hmm...
|
| On the serveraddress property i enter my sp's smtp address, but it is
unable
| to connect.
| Hmm, why?
|
| Well well, i have to investigate further.
|
| Thanx for help so far.
|

Are you sure you don't need to authenticate when connecting to your ISP
SMTP
mail server?

Willy.


Sep 1 '06 #9

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

Similar topics

1
8170
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 the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
0
1341
by: Jay | last post by:
The code below is a recommended way to send email with c# from my aspx page: MailMessage mail = new MailMessage(); mail.From = new MailAddress("development@ziptax.com"); mail.To.Add(new MailAddress(strTo)); mail.Subject = "ZipTax Survey Received"; mail.Body = body; SmtpClient client = new SmtpClient(System.Configuration.ConfigurationManager.AppSettings);
0
2395
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that when the SMTPClient attaches to the server and the server sends it greeting message, if anything other than +OK is received by the client it throws an exception and falls over.
2
17468
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 the bare minimum: System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("<my mail server IP>", 25); smtp.Send("<one of my email addresses>", "<another of my email addresses>", "Hello", "World");
5
3412
ak1dnar
by: ak1dnar | last post by:
I am not getting any mail from this Script. What is wrong with the coding.Page is working perfectly with my SMTP provider and its giving the output in the page. but no m ail in my mail box. <%@ page import="sun.net.smtp.SmtpClient, java.io.*" %> <% String from="ajaxrand@gmail.com"; String to="ajaxrand@gmail.com"; try { SmtpClient client = new SmtpClient("MY.SMTP.HERE");
0
19194
by: =?Utf-8?B?RnJlZHJpayBKb2hhbnNzb24=?= | last post by:
Hello, It seems like SmtpClient.EnableSsl = true, results in that the SmtpClient instance tries to use TLS over SMTP... That is: it commands "STARTTLS" when the connection has been established. My question is: Does SmtpClient also support SMTPS (that is: SMTP using SSL) ? SmtpClient client = new SmtpClient("server", 465); client.UseDefaultCredentials = false; client.EnableSsl = true; // TLS ?
3
1772
by: shansivamani | last post by:
using SMTP to send email. is there any settings need to be configured apart from Host name and Port, while sending emails using SMTPClient in .Net? when i try to send mail to ids which has only one dot in the domain name (eg : test@abc.com) there are no issues. but when the mail ids are like (test@abc.co.in or test@abc.rr.com) the mail is not getting received by those ids. also, there are no exceptions occured when i debugged it.
2
3828
by: btcoder | last post by:
Hi, my jsp page uses sun.net.smtp.SmtpClient to send email. It worked fine until the hosted location was moved to another server. Now it generates the sun.net.smtp.SmtpProtocolException and the hosting company can't find what's wrong with it so I'm here hoping somebody can help. The hosting company tried sending email from the server and it was okay and found no restrictions that prevents my page to access the smtp server. What could cause...
5
3914
by: BigDave | last post by:
Hi, I'm having problems with SmtpClient. I have the following set in my web.config: <configuration> <system.net> <mailSettings> <smtp> <network host="mysmtp" port="25" userName="myuser"
0
7969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8272
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3886
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2404
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.