[rt-users] How to add attachments (not links) with a template to an outgoing mail?

Brumm, Torsten / Kuehne + Nagel / Ham MI-ID torsten.brumm at Kuehne-Nagel.com
Fri Nov 20 06:28:54 EST 2009


Hi Tom,

thanks for the hint. in the mean time we found a easy way to do this ;-)

Torsten 


Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne



-----Urspruengliche Nachricht-----
Von: Tom Lahti [mailto:toml at bitstatement.net] 
Gesendet: Donnerstag, 19. November 2009 22:43
An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
Cc: rt-users at lists.bestpractical.com
Betreff: Re: [rt-users] How to add attachments (not links) with a template to an outgoing mail?

Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:
> Hi, i followed the the instructions from wiki to add all attachments 
> from a ticket (during the whole livetime) as links to the outgoing 
> mail. No i need to attache all the attachements to the outgoing mail, 
> but i can't find anything useful at the wiki for this.
> 
> Any suggestions?

As far as I know, you'd have to write a custom email template that fetches the attachment contents through the perl API and builds a MIME-encapsulated message body.  Of course it has to execute fully before the resulting page will display, which might take awhile.

Since I've forgotten most of my perl at this point, and I'd want the page to display quicker, personally I would probably build myself a custom REST service and have the perl template call that and supply some parameters.  But that's just me.

--
--
   Tom Lahti, SCMDBA, LPIC-1
   BIT LLC
   (425)251-0833 x 117
   http://www.bitstatement.net/
--




More information about the rt-users mailing list