send an email

  • Thread starter Thread starter bbawa1
  • Start date Start date
B

bbawa1

Hi,

Could you please send me code how to send an email in ASP.Net 2.0

Thanks in advance
 
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/
======================================
 
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;

Is "localhost" actually running an STMP server...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top