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/
======================================
<bb****@yahoo.comwrote in message news:11**********************@z28g2000prd.googlegr oups.com...
On Jun 14, 1:58 pm, "Mark Rae" <m...@markNOSPAMrae.netwrote:
><bba...@yahoo.comwrote in message
news:11**********************@i13g2000prf.googleg roups.com...
Could you please send me code how to send an email in ASP.Net 2.0
http://www.systemnetmail.com/faq/1.3...com/faq/3.aspx
--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;