473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Scheduled Job

Hello,
Can any body suggest a good solution in VB or in .Net for the following?

We need to send out mails ( 3 different mails having different schedules )
on a scheduled basis for which schedules should be maintained through our
custom intranet application.
What would be the best option? Does anybody has a readymade solution for
this whio can share with us?

Development environment are :
ASP.NET , IIS, SQL Server 2000 , C#

the options we thought are :

1 SQL server scheduled jobs. We cannot have a Mail profile in the server. In
this scenario, would this be possible? Here we loose the control as
maintanance may be difficult as it is independent of our intranet
application where the scheduling actually happning... Any suggestion?

2 Web Services .. We got a information that Web Servicess cannot run its own
but needs to have another component which consumes the Web Services Object.
Not much of idea in this case too... Any goos suggestion ?

3 Windows services : Developers here suggests against it as it could be
difficult for the maintanance. But workable. Has anybody done such kind of
Windows Programming ? can give us any idea on this?

Can anybody suggests the merits and demerits of it ?? Any other approach
could be a solution for this problem?

Any help in this regard would highly helpful for us ..

Regards

Sathian


Jul 21 '05 #1
3 1672
How about using a SQL Server job and use xp_smtp_sendmail from www.sqldev.net?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Sathian T" <sa*******@in.Bosch.com> wrote in message news:cs**********@ns2.fe.internet.bosch.com...
Hello,
Can any body suggest a good solution in VB or in .Net for the following?

We need to send out mails ( 3 different mails having different schedules )
on a scheduled basis for which schedules should be maintained through our
custom intranet application.
What would be the best option? Does anybody has a readymade solution for
this whio can share with us?

Development environment are :
ASP.NET , IIS, SQL Server 2000 , C#

the options we thought are :

1 SQL server scheduled jobs. We cannot have a Mail profile in the server. In
this scenario, would this be possible? Here we loose the control as
maintanance may be difficult as it is independent of our intranet
application where the scheduling actually happning... Any suggestion?

2 Web Services .. We got a information that Web Servicess cannot run its own
but needs to have another component which consumes the Web Services Object.
Not much of idea in this case too... Any goos suggestion ?

3 Windows services : Developers here suggests against it as it could be
difficult for the maintanance. But workable. Has anybody done such kind of
Windows Programming ? can give us any idea on this?

Can anybody suggests the merits and demerits of it ?? Any other approach
could be a solution for this problem?

Any help in this regard would highly helpful for us ..

Regards

Sathian

Jul 21 '05 #2
Hi Sathian,

This is not a "ready-made solution" as you put it, however I would suggest
the following...

- Implement a GUI/HTML front-end in your intranet application which users
can use for creating scheduling records. The records are stored to a custom
table in SQL Server (normal n-tier functionality).

- Write a C#.NET Windows Service that periodically polls this custom table
in SQL Server, and sends out the emails when it finds a schedule record whose
time period is up.

- Install the service on any of your Windows servers...

NB: polling is not usually a scalable option, however it sounds like in your
case you don't have that many users?

Have a look at the following article/sample code to help you with writing a
timer-based Windows service - it's written in VB.NET (not my choice :-)
personally) but it shouldn't be too difficult to convert to C#...

http://www.developerfusion.com/show/3441/1/

Hope this helps...

Patrick

"Sathian T" wrote:
Hello,
Can any body suggest a good solution in VB or in .Net for the following?

We need to send out mails ( 3 different mails having different schedules )
on a scheduled basis for which schedules should be maintained through our
custom intranet application.
What would be the best option? Does anybody has a readymade solution for
this whio can share with us?

Development environment are :
ASP.NET , IIS, SQL Server 2000 , C#

the options we thought are :

1 SQL server scheduled jobs. We cannot have a Mail profile in the server. In
this scenario, would this be possible? Here we loose the control as
maintanance may be difficult as it is independent of our intranet
application where the scheduling actually happning... Any suggestion?

2 Web Services .. We got a information that Web Servicess cannot run its own
but needs to have another component which consumes the Web Services Object.
Not much of idea in this case too... Any goos suggestion ?

3 Windows services : Developers here suggests against it as it could be
difficult for the maintanance. But workable. Has anybody done such kind of
Windows Programming ? can give us any idea on this?

Can anybody suggests the merits and demerits of it ?? Any other approach
could be a solution for this problem?

Any help in this regard would highly helpful for us ..

Regards

Sathian


Jul 21 '05 #3
Another option you might wish to consider is BLAT http://www.blat.net/

BLAT is a command line email tool which you could put into a batch file and
then invoke using the Windows Scheduled Task tool..

Richard Rosenheim
"Sathian T" <sa*******@in.Bosch.com> wrote in message
news:cs**********@ns2.fe.internet.bosch.com...
Hello,
Can any body suggest a good solution in VB or in .Net for the following?

We need to send out mails ( 3 different mails having different schedules ) on a scheduled basis for which schedules should be maintained through our
custom intranet application.
What would be the best option? Does anybody has a readymade solution for
this whio can share with us?

Development environment are :
ASP.NET , IIS, SQL Server 2000 , C#

the options we thought are :

1 SQL server scheduled jobs. We cannot have a Mail profile in the server. In this scenario, would this be possible? Here we loose the control as
maintanance may be difficult as it is independent of our intranet
application where the scheduling actually happning... Any suggestion?

2 Web Services .. We got a information that Web Servicess cannot run its own but needs to have another component which consumes the Web Services Object. Not much of idea in this case too... Any goos suggestion ?

3 Windows services : Developers here suggests against it as it could be
difficult for the maintanance. But workable. Has anybody done such kind of
Windows Programming ? can give us any idea on this?

Can anybody suggests the merits and demerits of it ?? Any other approach
could be a solution for this problem?

Any help in this regard would highly helpful for us ..

Regards

Sathian

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: A. Lovhaug | last post by:
I have a console application built in the .NET Framework. This application basically executes an XCopy based on parameters that I pass to it. I use it for creating scripts for backing up folders,...
6
by: John Bowman | last post by:
Hi, I have a C# app that needs to launch the "Add Scheduled Tasks" wizard found in the control panel "Scheduled Tasks" applet. I realize that this "applet" really just opens the tasks folder,...
5
by: A. Lovhaug | last post by:
I have a console application built in the .NET Framework. This application basically executes an XCopy based on parameters that I pass to it. I use it for creating scripts for backing up folders,...
1
by: satelite | last post by:
Hello, I am writing an exe that is intended to be run via a scheduled task. However, I also need the flexibility to have users run the scheduled task manually (right click task and select run). ...
0
by: Paulson | last post by:
Dear Freinds I want to make a program that acts as a reminder for the users.I need to open up the Scheduled task wizard programmatically.If you type Tasks in the run command the Tasks...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.