Emailing Reminders - Any suggestions ?

6 posts, 0 answers
  1. sam
    sam avatar
    4 posts
    Member since:
    Jul 2011

    Posted 01 Jan 2012 Link to this post

    Hi,

    I would love to generate email reminders based on the reminder settings coming from my RadScheduler.

    I imagine this would involved a scheduled application running on my server reading through the appointments in the database and checking for reminders and then sending emails.

    Does anyone know of any examples or information available online that would help me develop this ?

    Thanks
    Sam
  2. Plamen
    Admin
    Plamen avatar
    3076 posts

    Posted 03 Jan 2012 Link to this post

    Hi Sam,

     
    If you want to send an e-mail in the moment a reminder is triggered you can use an Ajax Request in the OnClientReminderTriggering event as in the code:

    function OnClientReminderTriggering(sender, args) {
          
               $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(args.get_appointment().get_subject()+" after "+args.get_reminder().get_trigger()+" minutes");
           }
    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
       {
           message.Body = e.Argument.ToString();
       }

    Hope this will be helpful.

    Greetings,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. sam
    sam avatar
    4 posts
    Member since:
    Jul 2011

    Posted 05 Jan 2012 Link to this post

    Hi,

    Thanks for the suggestion.

    I believe this idea will only work if the user is looking at the calendar at the time of the reminder.

    I mean if someone adds an appointment and sets a reminder for 2 days beforehand, I would like them to be emailed that reminder even if they don't look at the calendar again.

    So I guess I need a service on my webhost that checks the database for reminder triggers ?

    Cheers
    Sam
  4. Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 09 Jan 2012 Link to this post

    Sam:

    Here's a thought....

    "RadScheduler allows you to export appointments in the industry-standard iCalendar format. This is achieved via the ExportToICalendar static method of the RadScheduler class. For a step-by-step implementation, please see the Export to ICalendar help topic."

    See the online "Scheduler/iCalendar Export" demo at http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultcs.aspx# for help.

    Then, you'd have the option to use the MS Outlook Reminder functionality going forward.

    Hope this helps!
  5. Plamen
    Admin
    Plamen avatar
    3076 posts

    Posted 09 Jan 2012 Link to this post

    Hello Sam,

     
    You can get the trigger time in the AppointmentInsert event as well:

    protected void RadScheduler1_AppointmentInsert(object sender, AppointmentInsertEventArgs e)
       {
           Response.Write(e.Appointment.Reminders[0].Trigger);
       }

    Another solution is to export the appointments to ICalendar and use the Outlook reminder pop up after that.

    Hope this will help.

    Kind regards,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  6. sam
    sam avatar
    4 posts
    Member since:
    Jul 2011

    Posted 10 Jan 2012 Link to this post

    Thanks for the suggestions Plamen and Jumpstart !

    When I have figured out what I am going to do I will post on this thread it case it helps others.

    Cheers
    Sam
Back to Top