Go Back   DeveloperBarn Forums > Programming & Scripting > .Net Development

Sponsored Links

Discuss "windows service send emails every 10 days" in the .Net Development forum.

.Net Development - Learn about the Microsoft.Net framework and how to create powerful web-based (ASP.net) and client-based (Windows Forms) applications utilizing various languages such as C#, VB.Net, J# and others.


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old May 9th, 2008, 09:04 AM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 174
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 1
peebman2000 is an unknown quantity at this point
Question windows service send emails every 10 days

Hey everyone its peebman2000, still learning new things about .net everyday. Hey i'm in the process of researching the possibility of adding a functionality to a .net web app i'm currently building for work, that will send an email to users every 10 days.

I've done some research online and I see alot of talk about creating a window services, that will be on the server that will do this function.

I've don't know anything about creating a windows service, i'm mostly a vb.net developer, seems like this is mostly coded in C#. I practice C# from time to time, but mostly a vb.net.

I found this link and it seem pretty good:
CodeProject: Simulate a Windows Service using ASP.NET to run scheduled jobs. Free source code and programming help

It talks of buidling this functionality without window service.

My question is, which would be the better rout to go? Create a window service to send my emails and if this is the better way please give me some newbie window service links to start with.

Or would it be better to just follow this link above and build the email functionality without the window service?

Any ideas or suggestions would be greatly appreciated, thanks.
Reply With Quote
Sponsored Links
  #2  
Old May 9th, 2008, 09:12 AM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 174
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 1
peebman2000 is an unknown quantity at this point
Thumbs up nevermind

Okay nevermind my post, I was just told that this functionality can be done using reporting services.

Sorry for the post, its Friday i'm a little out of wack this morning, especially with my boss.

Thanks.
Reply With Quote
  #3  
Old May 9th, 2008, 09:15 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft SQL Server Microsoft Windows Microsoft .Net Classic ASP 
Total Awards: 4

Default

If you have the ability to install a Windows Service, you probably have the ability to use Windows Task Scheduler. It might be easier to write up a quick email routine and then set it as a scheduled task in Windows rather than create a service that might crash your system.
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

Join our Folding team: DeveloperBarn Folding
Reply With Quote
  #4  
Old May 9th, 2008, 09:16 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft SQL Server Microsoft Windows Microsoft .Net Classic ASP 
Total Awards: 4

Default

Quote:
Originally Posted by peebman2000 View Post
Okay nevermind my post, I was just told that this functionality can be done using reporting services.

Sorry for the post, its Friday i'm a little out of wack this morning, especially with my boss.

Thanks.
Indeed, reporting services would work very well.
Reply With Quote
  #5  
Old May 20th, 2008, 11:27 AM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 174
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 1
peebman2000 is an unknown quantity at this point
Question reply

Hey Jmurrayhead, sorry to bring this issue back up, but apparently reporting services won't be able to send out scheduled emails or reminder emails.

So I gave the idea to our network team to have a executable on the server and to use scheduling tasks to run. Well they didn't like that and wont' do it.

So I have to come up with links and ideas to support the idea of doing this. I can't find anything online that suggested and executable on the server is not dangerous. I look at windows server 2003 is just like xp or just more powerful and they both have executables on them, so there shouldn't be an issue; but i'm not a network guy.

Do you have any links or ideas I could use to rebuttal the network team? I also have been researching alternatives to send reminder emails, because the client does want this function. I've researched using database email in sql 2005:
Database Mail in SQL Server 2005

let me know thanks.

Quote:
Originally Posted by jmurrayhead View Post
Indeed, reporting services would work very well.
Reply With Quote
  #6  
Old May 20th, 2008, 11:35 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft SQL Server Microsoft Windows Microsoft .Net Classic ASP 
Total Awards: 4

Default

I think SQL Server 2005 Database Mail is an excellent option. If you can, I'd go with that.
Reply With Quote
  #7  
Old May 20th, 2008, 11:41 AM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 174
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 1
peebman2000 is an unknown quantity at this point
Thumbs up reply

Okay i'm playing with it now and the email works, but I have to find a way for it to trigger emails on certain dates. I've found some links about triggers.

I'll keep messing with this and I'll let you know how this comes out.

If you know of anything else in regards to using sql database mail for reminder emails, let me know.

Thanks again for the help.

Quote:
Originally Posted by jmurrayhead View Post
I think SQL Server 2005 Database Mail is an excellent option. If you can, I'd go with that.
Reply With Quote
  #8  
Old May 20th, 2008, 02:57 PM
Barn Newbie

 
Join Date: Mar 2008
Posts: 40
Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 1
lewy is on a distinguished road
Default

Just a side note here, you can customize the way your Sql Reporting Services delivery options work.

Please see the attached.

I just think it's way easier to automate the report this way rather than executing a trigger, which you can schedule but can get a bit tricky
Attached Images
File Type: jpg Changing a Report Delivery Options.jpg (55.3 KB, 6 views)
File Type: jpg Custom Schedule.jpg (44.4 KB, 6 views)
Reply With Quote
  #9  
Old May 20th, 2008, 04:00 PM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 174
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 1
peebman2000 is an unknown quantity at this point
Thumbs up reply

Hey thanks Lewy, i'm still working with sql database mail. I've found a way to schedule jobs to run sql stored procedures. I was never aware sql 2005 had a scheduling task. I've written a stored procedure that reads or selects from the table and then sends an email. But I keep getting job errors of it not being able to find my procedure.

I'm still working on it.

Thanks again.

Quote:
Originally Posted by lewy View Post
Just a side note here, you can customize the way your Sql Reporting Services delivery options work.

Please see the attached.

I just think it's way easier to automate the report this way rather than executing a trigger, which you can schedule but can get a bit tricky
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > .Net Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ASP.Net/VB.Net] Sending Emails Using ASP.NET richyrich Code Samples 0 March 23rd, 2008 07:20 AM
[VBScript] VBS Send Mail keep_it_simple Windows Scripting 0 March 22nd, 2008 11:58 AM


All times are GMT -4. The time now is 08:16 PM.



Content Relevant URLs by vBSEO 3.2.0