This is a migrated thread and some comments may be shown as answers.

Attach ICal Export File Within Email

3 Answers 30 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 28 Jun 2009, 01:00 PM
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?

Thanks

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 01 Jul 2009, 03:54 PM
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.SetLength(0); 
    file.Write(fileData, 0, fileData.Length); 
    file.Close(); 
     

Here is how to attach a file to an email.

I hope this will get you started.

Greetings,
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.
0
Sankar
Top achievements
Rank 1
answered on 26 Aug 2015, 01:45 PM

Hello,

          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.

0
Plamen
Telerik team
answered on 27 Aug 2015, 07:03 AM
Hello,

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

Regards,
Plamen
Telerik
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
Tags
Scheduler
Asked by
Nick
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Sankar
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or