Setting up mail

  • Thread starter Thread starter Rotsey
  • Start date Start date
R

Rotsey

Hi,

I am using System.Net.Mail.SmtpClient to send mail.

I used localhost as the host but this did not work.

For my app to work on a installed PC do I have specify the
SMTP server of the PC????

Do I need to have a config setting for this or can I
somehow use something like localhost.??

rotsey
 
To send email, you need to send it to an SMTP server. That means that you
must assign an SMTP server to the SmtpClient. As SMTP server is similar to a
web server in that it listens to an SMTP port on a given IP address and
responds to SMTP requests. So, as long as the machine has an SMTP server,
you can refer to the machine's IP address or host name.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Back
Top