Hi,
I developed an "Contact Us" - page with VS 2005 and ASP.NET 2.0.
By clicking the send button the following code is executed:
Configuration config =
WebConfiguratio nManager.OpenWe bConfiguration( Request.Applica tionPath);
MailMessage mailBericht = new
MailMessage(txt bxEmailadres.Te xt.Trim(),
config.AppSetti ngs.Settings["contactMailAdr es"].Value.Trim());
mailBericht.Sub ject = "Mailberich t vanaf website";
mailBericht.Bod y = txtbxBericht.Te xt + "\n" + txtbxNaam.Text. Trim()
+ "\n" + txtbxTelefoon.T ext.Trim();
SmtpClient smtp = new
SmtpClient(conf ig.AppSettings. Settings["mailserver "].Value,
int.Parse(confi g.AppSettings.S ettings["mailPort"].Value.ToString ()));
smtp.UseDefault Credentials = true;
smtp.Send(mailB ericht);
The mailserver-key contains "localhost" .
The port is 1607 (but i've tried port 25 also).
I'm using the built-in webserver from VS2005 on an XP Home Edition-machine.
The codeline "smtp.Send(mail Bericht);" throws the following exception:
"Smtp server returned an invalid response"
I can't figure out what 's wrong.
I guess that the problem is caused within the built-in webserver.
Is it anyway possible to send mail from the built-in webser in conjunction
with an XP Home Edition-machine?
greetings
Ruud 2 2655
By built-in web server, I assume you mean the built-in VS.Net 2005 web
server. The question is, what is the SMTP server you are trying to pass
through. Windows XP Home won't have one builtin as the nromal one is part of
IIS. Unless you're running a third-party SMTP server, then it should throw
an error just as you're seeing since there isn't a valid SMTP listener on
port 25 to give a meaningful response.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Ruud Ortmans" <Ru*********@di scussions.micro soft.comwrote in message
news:45******** *************** ***********@mic rosoft.com...
Hi,
I developed an "Contact Us" - page with VS 2005 and ASP.NET 2.0.
By clicking the send button the following code is executed:
Configuration config =
WebConfiguratio nManager.OpenWe bConfiguration( Request.Applica tionPath);
MailMessage mailBericht = new
MailMessage(txt bxEmailadres.Te xt.Trim(),
config.AppSetti ngs.Settings["contactMailAdr es"].Value.Trim());
mailBericht.Sub ject = "Mailberich t vanaf website";
mailBericht.Bod y = txtbxBericht.Te xt + "\n" + txtbxNaam.Text. Trim()
+ "\n" + txtbxTelefoon.T ext.Trim();
SmtpClient smtp = new
SmtpClient(conf ig.AppSettings. Settings["mailserver "].Value,
int.Parse(confi g.AppSettings.S ettings["mailPort"].Value.ToString ()));
smtp.UseDefault Credentials = true;
smtp.Send(mailB ericht);
The mailserver-key contains "localhost" .
The port is 1607 (but i've tried port 25 also).
I'm using the built-in webserver from VS2005 on an XP Home
Edition-machine.
The codeline "smtp.Send(mail Bericht);" throws the following exception:
"Smtp server returned an invalid response"
I can't figure out what 's wrong.
I guess that the problem is caused within the built-in webserver.
Is it anyway possible to send mail from the built-in webser in conjunction
with an XP Home Edition-machine?
greetings
Ruud
Thanks.
I managed the problem by sending the mail to the mailserver of my regular
provider. That works.
"Mark Fitzpatrick" wrote:
By built-in web server, I assume you mean the built-in VS.Net 2005 web
server. The question is, what is the SMTP server you are trying to pass
through. Windows XP Home won't have one builtin as the nromal one is part of
IIS. Unless you're running a third-party SMTP server, then it should throw
an error just as you're seeing since there isn't a valid SMTP listener on
port 25 to give a meaningful response.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Ruud Ortmans" <Ru*********@di scussions.micro soft.comwrote in message
news:45******** *************** ***********@mic rosoft.com...
Hi,
I developed an "Contact Us" - page with VS 2005 and ASP.NET 2.0.
By clicking the send button the following code is executed:
Configuration config =
WebConfiguratio nManager.OpenWe bConfiguration( Request.Applica tionPath);
MailMessage mailBericht = new
MailMessage(txt bxEmailadres.Te xt.Trim(),
config.AppSetti ngs.Settings["contactMailAdr es"].Value.Trim());
mailBericht.Sub ject = "Mailberich t vanaf website";
mailBericht.Bod y = txtbxBericht.Te xt + "\n" + txtbxNaam.Text. Trim()
+ "\n" + txtbxTelefoon.T ext.Trim();
SmtpClient smtp = new
SmtpClient(conf ig.AppSettings. Settings["mailserver "].Value,
int.Parse(confi g.AppSettings.S ettings["mailPort"].Value.ToString ()));
smtp.UseDefault Credentials = true;
smtp.Send(mailB ericht);
The mailserver-key contains "localhost" .
The port is 1607 (but i've tried port 25 also).
I'm using the built-in webserver from VS2005 on an XP Home
Edition-machine.
The codeline "smtp.Send(mail Bericht);" throws the following exception:
"Smtp server returned an invalid response"
I can't figure out what 's wrong.
I guess that the problem is caused within the built-in webserver.
Is it anyway possible to send mail from the built-in webser in conjunction
with an XP Home Edition-machine?
greetings
Ruud
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hugh Cowan |
last post by:
Hello,
I don't program full-time (anymore), but I do try and stay on-top of
the latest technologies and like most are always trying to upgrade my
skills and remain current (as much as is possible).
Most of my programming these days involves using PHP for creating
script files for automating tasks and procedures (locally), and also
for anything that might be needed by our divisional Intranet (not a
huge site by any stretch of the...
|
by: Andrew |
last post by:
Hi,
I am thinking about ways for efficient techniques for isolation testing.
Here is the problem as I see it:
Complex OO systems are designed with massive number of dependencies between
modules and classes. In most cases these dependencies end-up in external
systems such as databases and OS. Overhead in designing systems with "could
be stubbed" in mind is great, so in many cases dropped.
I would appreciate if anyone interested in this...
|
by: Don G |
last post by:
I currently have IE6 and Firefox installed on my machine, and I switch
between the two when testing web sites I am working on. It is my
understanding that IE5 is still pretty common. Is this correct? Should
I be testing my web site with IE5 as well? If so, does anyone know
where I might be able to download a copy? Is it possible to install IE5
on a machine with IE6?
I know that there are many browsers out there, and that each has...
|
by: Jonathan Allen |
last post by:
We have found that our method of testing does not match traditional
text-book methodologies. I decided to write a short white paper on it so
that I could get your opinions. Does anyone else use this method? If so,
what the heck is it called? Do you think it would work in other projects, or
did we just luck out?
Jonathan Allen
*****************
|
by: |
last post by:
Hi!
I'm looking for unit-testing tools for .NET.
Somthing like Java has --> http://www.junit.org
regards,
gicio
| |
by: Jacob |
last post by:
I have compiled a set og unit testing
recommendations based on my own experience
on the concept.
Feedback and suggestions for improvements
are appreciated:
http://geosoft.no/development/unittesting.html
Thanks.
|
by: Dick |
last post by:
I’d appreciate some advice regarding unit tests. My questions are general in
nature but (as usual) best conveyed via a (simplified) example:
I have a table that contains two columns – the name of a PC and the
date/time that an event took place.
I have a stored procedure that accepts two date arguments – a start
date/time and an end date/time. It returns a list of PC’s and the number of
times the event took place within the...
|
by: David |
last post by:
Hi list.
What strategies do you use to ensure correctness of new code?
Specifically, if you've just written 100 new lines of Python code, then:
1) How do you test the new code?
2) How do you ensure that the code will work correctly in the future?
Short version:
|
by: Matthew Fitzgibbons |
last post by:
I'm by no means a testing expert, but I'll take a crack at it.
Casey McGinty wrote:
I've never run into this.
Rule of thumb: always separate software from hardware. Write mock
classes or functions that do your hardware/file access that always
return known data (but remember to test for alpha and beta errors--make
sure both valid and invalid data are handled correctly). That way you
can test the client code that is accessing the...
|
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,...
|
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...
| |
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...
|
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...
|
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...
|
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();...
|
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...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |