[otrs] Send Email from GenericAgent

Torsten Thau Torsten.Thau at cape-it.de
Sat May 31 14:09:34 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Daniel,

Shue, Daniel G. schrieb:
> Hi guys, I need a way to Send and email to certain address every time a ticket is created.  
> The GenericAgent is obviously to best way to do this,

A GenericAgents is more like a cron job. Thus there is a better way to
do what you want: you can use a TicketEventHandler on the ticket event
"TicketCreate" or "ArticleCreate".

http://doc.otrs.org/developer/2.2/en/html/x533.html#ticket-module-event

Your difficulties with sending emails: have a look at sub
ArticleSend() in Kernel::System::Ticket::Article - it does pretty much
what you want (if you want to attach this email to the ticket).


regards, Torsten Thau

- --
Torsten Thau, Dipl. Inform.
c.a.p.e. IT Labs GbR - Annaberger Str. 240 - D-09125 Chemnitz
phone: +49 371 5347 623
cell: +49 176 66 680 680
personal pgp-key: 0x93E0A174
fax: +49 371 5347 625
http://www.cape-it.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIQVwdvXo8m5PgoXQRAuh5AJ9jCHBNYd+SHgO1zKR0k6I60Xyd1wCfTvVF
tee5NAGXfCeJzwQJHQFGEeU=
=MTPJ
-----END PGP SIGNATURE-----


More information about the otrs mailing list