Code for ical attachement in cakephp using sendGrid

can any one help me in ical attachment with mail using sendgrid in cakephp. I does how to write a code for this

If you want us to help you, you will need to be more specific about the problems you encounter.
What do you want to achieve?
What goes wrong?
What did you try?

sir i want to send ical attachment with mail to the person who with purchase classes. when the confrimation mail is send with that ical attachment should be send. that it will added in the calenderwith the date of class date and time

I’m trying to understand you but i must say that’s rather difficult.
I’m thinking you try to sent an email with attachement.
You can lookup the documentation for this functionality here: