I thought of creating a ".ics" file with proper format and set it with the email attachment. But i faced an issue in converting ".txt" document into ".ics" document.
Is there any other way i can try because i am not finding any way to change the extension of a document.
Discussion posts and replies are publicly visible
If memory serves, I did this for a customer in the past.
You shouldn't need to convert the txt to ics. just save your template as ics.
Also, keep in mind that you are designing against an external standard. The template generated ics "should" work fine, but there's no accounting for nuances in the original expected behavior of these files.