Service sending email

M

Mark

I have a service that I've built that runs on our web server. The web
service has a reference to the System.Web namespace so it can use the
classes titled:

MailMessage
SmtpMail

My web server uses these classes just fine. I can't seem to get my service
to send email. Is there an inherent problem with sending email from a
service and/or using the System.Web namespace from a service project?

Thanks in advance.

Mark
 
J

Jonathan Stowe

Mark said:
Is there an inherent problem with sending email from a
service and/or using the System.Web namespace from a service project?

No there isn't a problem sending email from a service, I have created
services that do just this sending hundred of messages a day in some
cases. If you are using the local IIS (i.e. not setting the SmtpServer
property) you may have a problem with permissions on the filesystem.
Have you confirmed you can send mail from a standalone (console) program
using the same settings?

/J\
 

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