Window Service and Http Request

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi All

I'm assigned a task to create some kind of services to monitor new sales in
database and send out emails and I'm thinking to use window service to do
that. Does anyone know where I can find some good samples of window service
that do similar things? Can a window service send an http request? Any help
would be greatly appreciated

Regards,

Sam
 
Looks slightly confusing to me. Do you want to send emails or http requests,
or both?
The scenario you describe first (monitor a database and send emails) is a
perfect task for a service.

As for the http requests it depends on what you want to do with the result.
Do you intend to parse it and take some action based on it? If so, then that
too will work fine in a service. But you can't throw up the result in a web
browser or similar though, since there is no user there to see it (well
technically you could, but don't go there).

In any case your service needs to run under a user account that has access
to the mail server and/or the internet. I don't have any samples for you
unfortunately, but writing a service isn't that hard as long as you are
aware of its limitations (which basically are that you can't interact with
the screen and if you require access to network resources you need to run it
under a user account that has access to those)

/claes
 
Back
Top