[rt-users] AW: RT2 Modifying Template to include attachments in emails

Andreas Wahlfeldt awahlfeldt at subshell.com
Tue Aug 3 07:59:43 EDT 2004


hi stefan,

maybe my answer is a little late, but since there are no follow-ups to your
post it might still be helpfull.
we use a modified version of the attached 'NotifyWithAttachment.pm' written
by Staffan Larsen(?).

it's used this way:
> 1. Read the README
> 2. Copy the perl module to rt2/lib/RT/Action/ (since this is a
ScripAction)
> 3a.execute the insert database script - this adds NotifyWithAttachment to
the list of known ScripActions.
> 3b.or use the following sql-statement on the rt-db: insert into
ScripActions values (##,'NotifyAllWatchersWithAttachment','Sends mail to all
watchers with attachments','NotifyWithAttachment','All','4','2002-07-19
13:30:00',1,'2002-07-19 13:30:00');
> 
> Then, use this action in a scrip or your choosing.  I modified the 
> OnCorrespond script to use this action instead of NotifyAllWatchers.
> 
> NOTE: I found a misspelled hash key in my copy of NotifyWithAttachment.pm
> Around line 54, change "Disposisiton" to "Disposition"

good luck.

mit freundlichen gruessen aus der margaretenstrasse in hamburg

cu
andreas

__________________________

Andreas Wahlfeldt
subshell GmbH
Margaretenstraße 43a
20357 Hamburg

t +49.40. 431 362-25
f +49.40. 431 362-29
e awahlfeldt at subshell.com
__________________________ 

Message: 4
Date: Tue, 27 Jul 2004 13:30:37 +0200
From: Stefan Seiz <TalkLists at index-s.de>
Subject: [rt-users] RT2 Modifying Template to include attachments in
	emails
To: <rt-users at lists.bestpractical.com>
Message-ID: <BD2C097D.574FE%TalkLists at index-s.de>
Content-Type: text/plain; charset="US-ASCII"

Hi,

this is probably a faq, but since the web-search feature to this list seems
broken, it is hard for me to find it out - the RT2 docs also seem broken
(redirecting to webarchive which doesn't always find a cached version).
Google didn't help me either.

I need to know how to modify a template in RT2 so it includes the
attachments of the original request into email send with the corresdpondance
template.

Current Template "Default correspondence template":
--- snip ---


{$Transaction->Content()}
--- snap ---

Thanks!

--
Stefan Seiz <http://www.StefanSeiz.com>
Spamto: <bin at imd.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NotifyWithAttachment.tgz
Type: application/x-compressed
Size: 2659 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20040803/d10238bf/attachment.bin>


More information about the rt-users mailing list