SMTP and System.Web.Mail

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Before I can make calls to System.Web.Mail, I need to ensure SMTP is
configured on the PC (running my app). If SMTP is not configured, I need to
turn on SMTP with default settings.

Is this possible? Could I use something like sysocmgr to perform a quiet
install before calling: net start smtpsvc ?
 
You don't need the local SMTP service to send mail if you're connecting
directly to the relay server. The Windows SMTP thing is only useful if
you're telling the mail object to use the pickup functionality.
 
SMTP service is not running on my machine yet i can use the System.Web.Mail
code to send emails via smtp. I might be wrong but i don't think you need to
activate the smtp service.

You can just specify an SMTP server . Check the visual studio help, search
for smtpmail class in the index. In about smtpmail class there is some code
there which lets you specify your server.
 
Back
Top