Email Ics File As Calender

I want to send an event via email (using YiiMail). Is there any code which works fine for YII.