473,614 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SMTP on Windows XP Pro

I'm using the System.Web.Mail .SmtpMail object (.NET 1.1)
to send email from an ASP.NET application. Everything
works fine when I run it from Windows 2000 Server, but
not from WinXP Pro. Is it not possible to send mail
using the SMTP service or XP? Is there a different class
that I should be using? I don't really need to send
email from XP, but since I'm doing my development from XP
it's really slows down debugging to have to comment out
these lines everytime I need to debug.

Thanks!

Ian
Nov 17 '05 #1
5 16690
I have it installed, but not running. I tried re-
installing it and still no luck. The ASP.NET application
gives the following error:

The "SendUsing" configuration value is invalid.

Thanks,

Ian
-----Original Message-----
Ian,
Did you install the SMTP service in XP Pro? It's an optionalcomponent so it's not always installed (under Control Panel | Add/RemovePrograms | Add/Remove Windows Components). Otherwise, not all the supportingfeatures may be installed for the mail classes, such as CDO which the mailfunctions typically wrap around.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"R. Ian Lee" <ia*****@jacobs .com> wrote in message
news:03******* *************** ******@phx.gbl. ..
I'm using the System.Web.Mail .SmtpMail object (.NET 1.1) to send email from an ASP.NET application. Everything
works fine when I run it from Windows 2000 Server, but
not from WinXP Pro. Is it not possible to send mail
using the SMTP service or XP? Is there a different class that I should be using? I don't really need to send
email from XP, but since I'm doing my development from XP it's really slows down debugging to have to comment out
these lines everytime I need to debug.

Thanks!

Ian

.

Nov 17 '05 #2
Hi Ian,
Without seeing your code, I'm guessing you didn't set the
SmtpMail.SmtpSe rver property.

Set this property, even if it is local.

ex:
SmtpMail.SmtpSe rver = "127.0.0.1" ;

Let me know if that works.

Cheers!
Dave
www.aspNetEmail.com

"R. Ian Lee" <ia*****@jacobs .com> wrote in message news:<0c******* *************** ******@phx.gbl> ...
I have it installed, but not running. I tried re-
installing it and still no luck. The ASP.NET application
gives the following error:

The "SendUsing" configuration value is invalid.

Thanks,

Ian
-----Original Message-----
Ian,
Did you install the SMTP service in XP Pro? It's

an optional
component so it's not always installed (under Control

Panel | Add/Remove
Programs | Add/Remove Windows Components). Otherwise,

not all the supporting
features may be installed for the mail classes, such as

CDO which the mail
functions typically wrap around.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"R. Ian Lee" <ia*****@jacobs .com> wrote in message
news:03******* *************** ******@phx.gbl. ..
I'm using the System.Web.Mail .SmtpMail object (.NET 1.1) to send email from an ASP.NET application. Everything
works fine when I run it from Windows 2000 Server, but
not from WinXP Pro. Is it not possible to send mail
using the SMTP service or XP? Is there a different class that I should be using? I don't really need to send
email from XP, but since I'm doing my development from XP it's really slows down debugging to have to comment out
these lines everytime I need to debug.

Thanks!

Ian

.

Nov 17 '05 #3
Hi Lan,

Please use smarthost.
MailMessage mail = new MailMessage();
mail.From = "fr**@somewhere .com";
mail.To = "ek******@micro soft.com";
mail.Subject = "subject";
mail.Body = "message!";
mail.BodyFormat = MailFormat.Html ;
SmtpMail.SmtpSe rver= "smarthost" ;
SmtpMail.Send(m ail);


SMTPMail does work on XP Pro. We do it all the time. But please pay
attention to smarthost relay, it may cause the email relay. Thanks.

Regards,
HuangTM
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #4
That partly solves my problem. This solves the problem if the SMTP service
is running, however, if the service is not running I still get an error
stating "The transport failed to connect to the server." Since this is a
development machine and I do not want the emails to actually go anywhere
except the "Pickup" directory I prefer not to have this service running.
This isn't a problem using Windows 2K Server. Is this normal behavior for
XP or am I missing a setting somewhere? Otherwise, how am I supposed to
inspect emails during development without actually sending them?

Thanks!!!

Ian

"dave wanta" <go*****@123asp x.com> wrote in message
news:e2******** *************** ***@posting.goo gle.com...
If you are getting the standard relay error. Open up the SMTP Service
properties, and on the Access tab, click the Relay button.Grant access
to 127.0.0.1 to "relay through this virutal server."

hth,
Dave
www.aspNetEmail.com



"R. Ian Lee" <ia*****@jacobs .com> wrote in message

news:<02******* *************** ******@phx.gbl> ...
This seems to work...sort of. It is now trying to
connect to the SMTP server, but since I do not have the
SMTP service running (because I don't want the email to
actually be sent) I am getting the following error:

"The transport failed to connect to the server."

Using SmtpMail.SmtpSe rver="smarthost " returns this error
even if the service is running. But, if I set
SmtpMail.SmtpSe rver="127.0.0.1 " and start the service
then I get a "cannot relay" error which seems to indicate
that everything is working. Unfortunately, this is not
the behavior I was expecting. When I develop using
Windows 2000 Server as my OS, I do not get this error.
The messages are simply dropped into the "Pickup"
directory but my application thinks that they are
delivered OK. Using Windows XP, it seems that the errors
are sent back to my application immediately. Is there
some setting that I need to set in XP to get this same
behavior as I get when using Windows 2000 Server?

Thanks!!!
Ian
-----Original Message-----
Hi Lan,

Please use smarthost.

> MailMessage mail = new MailMessage();
> mail.From = "fr**@somewhere .com";
> mail.To = "ek******@micro soft.com";
> mail.Subject = "subject";
> mail.Body = "message!";
> mail.BodyFormat = MailFormat.Html ;
> SmtpMail.SmtpSe rver= "smarthost" ;
> SmtpMail.Send(m ail);

SMTPMail does work on XP Pro. We do it all the time.

But please pay
attention to smarthost relay, it may cause the email

relay. Thanks.

Regards,
HuangTM
This posting is provided "AS IS" with no warranties, and

confers no rights.

.

Nov 17 '05 #5
That partly solves my problem. This solves the problem if the SMTP service
is running, however, if the service is not running I still get an error
stating "The transport failed to connect to the server." Since this is a
development machine and I do not want the emails to actually go anywhere
except the "Pickup" directory I prefer not to have this service running.
This isn't a problem using Windows 2K Server. Is this normal behavior for
XP or am I missing a setting somewhere? Otherwise, how am I supposed to
inspect emails during development without actually sending them?

Thanks!!!

Ian

"dave wanta" <go*****@123asp x.com> wrote in message
news:e2******** *************** ***@posting.goo gle.com...
If you are getting the standard relay error. Open up the SMTP Service
properties, and on the Access tab, click the Relay button.Grant access
to 127.0.0.1 to "relay through this virutal server."

hth,
Dave
www.aspNetEmail.com



"R. Ian Lee" <ia*****@jacobs .com> wrote in message

news:<02******* *************** ******@phx.gbl> ...
This seems to work...sort of. It is now trying to
connect to the SMTP server, but since I do not have the
SMTP service running (because I don't want the email to
actually be sent) I am getting the following error:

"The transport failed to connect to the server."

Using SmtpMail.SmtpSe rver="smarthost " returns this error
even if the service is running. But, if I set
SmtpMail.SmtpSe rver="127.0.0.1 " and start the service
then I get a "cannot relay" error which seems to indicate
that everything is working. Unfortunately, this is not
the behavior I was expecting. When I develop using
Windows 2000 Server as my OS, I do not get this error.
The messages are simply dropped into the "Pickup"
directory but my application thinks that they are
delivered OK. Using Windows XP, it seems that the errors
are sent back to my application immediately. Is there
some setting that I need to set in XP to get this same
behavior as I get when using Windows 2000 Server?

Thanks!!!
Ian
-----Original Message-----
Hi Lan,

Please use smarthost.

> MailMessage mail = new MailMessage();
> mail.From = "fr**@somewhere .com";
> mail.To = "ek******@micro soft.com";
> mail.Subject = "subject";
> mail.Body = "message!";
> mail.BodyFormat = MailFormat.Html ;
> SmtpMail.SmtpSe rver= "smarthost" ;
> SmtpMail.Send(m ail);

SMTPMail does work on XP Pro. We do it all the time.

But please pay
attention to smarthost relay, it may cause the email

relay. Thanks.

Regards,
HuangTM
This posting is provided "AS IS" with no warranties, and

confers no rights.

.

Nov 17 '05 #6

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

Similar topics

11
7633
by: Christian Patterer | last post by:
Hi, Even after searching the web for hours, I can't get my PHP configuration work. I have Apache and PHP installed. Now I want to use the mail() function in PHP. On the Linux server I have running Lotus Domino as SMTP server and I don't know how to configure PHP to use the Lotus Domino SMTP server. I use the setting SMTP=localhost to access the Domino server, but this
21
3362
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. Nancy W
2
13696
by: RandRace | last post by:
I'm having some problems with a little script i wrote using net::smtp. I originally wrote it in linux where it works perfectly. I tried to use it from windows the other day and it doesn't work. It connects to the server and prints the banner but will not send mail. Here is my script: use Net::SMTP; my $smtp = Net::SMTP->new('smtp.comcast.net') or die "Can't Open server"!";
8
3702
by: Sue | last post by:
Does this "NT-based machine (NT, 2K, XP)" mean a WindowsXP machine is a NT-based machine? What does NT stand for and what does it mean? What is CDONTS? What does this mean - "The machine must be running the SMTP service "? Thanks,
34
18219
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
1
2944
by: Benny Ng | last post by:
Dear All, Now I just finished my winform application. And a part of that is to send email reminder to the users. It's working fine in the server that with SMTP service in Windows 2003. But now the user wants to used the Linux server to send email messages. (already installed the SMTP service in that). Unfortunatelly one error shown after the sending funciton invoked. It shows "Pickup directory is not existed,x,x,x,,"
7
7728
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee free edition for anti-virus. I use an ISP provider from my country and according to them I do not need to perform authentication while sending mails through their SMTP address. Thus I am using external SMTP server. I don't have IIS installed...
5
5079
by: Chris Gage | last post by:
I'm a longtime *nix guy and am fairly comfortable "over there" although I am a developer and not a sysadmin, mostly J2EE stuff. I recently got the Microsoft "Action Pack" as a partner. It has legit licenses for a bunch of Microsft software for development/evaluation purposes. I decided to install Windows Server 2003 - the first time I have ever installed a Windows Server. I decided to install Apache rather than try to learn IIS, and...
6
5189
by: phpmagesh | last post by:
Hi, I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details, problem is when i send mail it simple through waring msg as: can anyone help me why such problem occurs, how to over come this problem.
0
8130
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8627
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
8579
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...
1
8279
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6088
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5540
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
4052
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...
0
4127
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2568
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

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.