How to setup a SMTP Server?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
If you're sending from the PC where the application resides, use 127.0.0.1
as your SMTP server.
 
Back
Top