[rt-users] scrip and template to email calendar invite
Brent Wiese
bwiese at ElementPS.com
Wed Jan 18 18:44:22 EST 2012
Sorry, forgot to mention I'm running 4.0.4...
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Brent Wiese
Sent: Wednesday, January 18, 2012 4:33 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] scrip and template to email calendar invite
I've seen the question asked before when I search the archives, but I wasn't able to find an answer my brain could parse.
I need to build a scrip and template that will send an Outlook style calendar invite via email with a due date based on a custom field (datetime type).
After a good bit of research, I think I have all the lines I need to build the ics file attachment (although being able to do it inline vs an attachment would be gravy - maybe I just need to set the content type to "Content-Type: text/calendar; charset="utf-8"; method=REQUEST" which is what I see when I look at an invite generated from my Outlook client?).
But from there I'm pretty much stuck.
My assumption is I would need to build a new template. What I can't figure out is the code that goes in the template so the text I'm adding isn't just parsed as the message content itself.
The scrip itself is less of a worry - in my particular case, it's going to fire when a ticket is moved into a particular queue only, so that part is pretty easy.
I've seen other responses of "use the calendar feed" or "use a different email client" but the reality is in my situation that's not an option. It needs to be via email and it needs to be Outlook compatible (the more "native" the better).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120118/6dd49da7/attachment.htm>
More information about the rt-users
mailing list