How to setup a SMTP Server?

G

Guest

Dear all,

How to setup a smtp server for sending mail using System.Web.SmtpMail? Just
install a smtp service to the pc then

SmtpMail.SmtpServer = "myPC"; ??

I could not make it work. How?

Thanks for any help

Tedmond
 
K

Kevin Spencer

What SMTP software did you install? What Port is it listening on?

The value of the SmtpServer is either a domain name, machine name, host
name, or IP address.

Finally, what do you mean by "couldn't make it work?"

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
T

ThunderMusic

There is one thing to note if you plan on doing this from your home... Many
(if not all) ISP block port 25 which is the port used for SMTP. As a result,
you can't have a smtp server at home because it would serve nothing because
it can't send anywhere except your ISP' SMTP server which won't relay
e-mails....

but what you said about SmtpMail.SmtpServer = "myPC"; is right... is
should work...

I hope it helps

ThunderMusic
 
C

Christopher Reed

If you're sending from the PC where the application resides, use 127.0.0.1
as your SMTP 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

Top