send an email

B

bbawa1

Hi,

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

Thanks in advance
 
J

Juan T. Llibre

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.
 
M

Mark Rae

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top