> <bba...@yahoo.com> wrote in message
>
[quoted text clipped - 5 lines]
>
> --http://www.markrae.net
I don't know the IP address for smptserver. Is there any way that I
can use default IPaddress.
e.g I tried the following but it doesn't work
SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "localhost";
smtpClient.Port = 25;
Juan T. Llibre - 14 Jun 2007 23:30 GMT
If you have configured an smtp server in your computer,
you can use a variety of ways to call it.
1. localhost
2. 127.0.0.1
3. your machine's name ( I use this one... )
They all work, depending on how your TCP/IP stack is configured.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
>> <bba...@yahoo.com> wrote in message
>>
[quoted text clipped - 13 lines]
> smtpClient.Host = "localhost";
> smtpClient.Port = 25;
Mark Rae - 14 Jun 2007 23:40 GMT
> I don't know the IP address for smptserver. Is there any way that I
> can use default IPaddress.
[quoted text clipped - 3 lines]
> smtpClient.Host = "localhost";
> smtpClient.Port = 25;
Is "localhost" actually running an STMP server...

Signature
http://www.markrae.net
bbawa1@yahoo.com - 15 Jun 2007 00:04 GMT
> <bba...@yahoo.com> wrote in message
>
[quoted text clipped - 11 lines]
>
> --http://www.markrae.net
How can I come to know that localhost actually running an STMP server
Mark Rae - 15 Jun 2007 08:31 GMT
>> Is "localhost" actually running an SMTP server...
>
> How can I come to know that localhost actually running an SMTP server
What OS is it?

Signature
http://www.markrae.net
bbawa1@yahoo.com - 15 Jun 2007 18:34 GMT
> <bba...@yahoo.com> wrote in message
>
[quoted text clipped - 7 lines]
>
> --http://www.markrae.net
Mine is windows 2003
Mark Rae - 16 Jun 2007 11:24 GMT
>> >> Is "localhost" actually running an SMTP server...
>>
[quoted text clipped - 3 lines]
>>
> Mine is windows 2003
So go into Services and see if the SMTP service is running...

Signature
http://www.markrae.net