+ Reply to Thread
Results 1 to 9 of 9

Thread: windows service send emails every 10 days

  1. #1
    Barn Enthusiast peebman2000 is on a distinguished road peebman2000's Avatar
    Join Date
    Mar 2008
    Posts
    215
    Rep Power
    4

    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.

  2. #2
    Barn Enthusiast peebman2000 is on a distinguished road peebman2000's Avatar
    Join Date
    Mar 2008
    Posts
    215
    Rep Power
    4

    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.

  3. #3
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    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, give me rep.
    If you like it here...throw us a few bones to help support us.


  4. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    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.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  5. #5
    Barn Enthusiast peebman2000 is on a distinguished road peebman2000's Avatar
    Join Date
    Mar 2008
    Posts
    215
    Rep Power
    4

    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.

  6. #6
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    I think SQL Server 2005 Database Mail is an excellent option. If you can, I'd go with that.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  7. #7
    Barn Enthusiast peebman2000 is on a distinguished road peebman2000's Avatar
    Join Date
    Mar 2008
    Posts
    215
    Rep Power
    4

    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.

  8. #8
    Barn Frequenter lewy is on a distinguished road lewy's Avatar
    Join Date
    Mar 2008
    Posts
    108
    Rep Power
    4

    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

  9. #9
    Barn Enthusiast peebman2000 is on a distinguished road peebman2000's Avatar
    Join Date
    Mar 2008
    Posts
    215
    Rep Power
    4

    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 to Thread

Similar Threads

  1. Sending Emails Using ASP.NET
    By richyrich in forum .NET Code Samples
    Replies: 5
    Last Post: July 6th, 2009, 05:21 AM
  2. VBS Send Mail
    By keep_it_simple in forum Windows Scripting
    Replies: 0
    Last Post: March 22nd, 2008, 12:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO