Attach ICal Export File Within Email

4 posts, 0 answers
  1. Nick
    Nick avatar
    11 posts
    Member since:
    Jan 2009

    Posted 28 Jun 2009 Link to this post

    I currently send the user an email when they insert an appointment. I would like to attach an .ics export file as part of the email. Is this possible?

  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 01 Jul 2009 Link to this post

    Hello Nick,

    Yes, this is possible.
    Please see our online demo - in the code behind you will find a method WriteData. You can modify it so it saves the .ics file to the file system and then attach it to the MailMessage object:

    private void WriteCalendar(string data) 
        ASCIIEncoding ue = new ASCIIEncoding(); 
        byte[] fileData = ue.GetBytes(data); 
        //save the file to a temp folder 
        FileStream file = new FileStream("c:\\temp\\export.ics", FileMode.OpenOrCreate, FileAccess.Write); 
        file.Write(fileData, 0, fileData.Length); 

    Here is how to attach a file to an email.

    I hope this will get you started.

    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Sankar
    Sankar avatar
    14 posts
    Member since:
    Jun 2015

    Posted 26 Aug 2015 in reply to Veselin Vasilev Link to this post


              Is there any way to book the same timing(our scheduler appointment time) in the online outlook calender. By send mail attachments? or is there any way sync the scheduler and outlook calender?

     Please let me know ASAP.

  4. Plamen
    Plamen avatar
    2817 posts

    Posted 27 Aug 2015 Link to this post


    You can use the exchange Provider to sync RadScheduler and Outlook as it is described here.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top