
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, however, I am not having any luck getting an email to Send. I am trying my best with doing a custom module, but I'm not making any progress. Any one else face this problem before? Daniel Shue Networking Specialist Randolph County Computer Services

-----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-----
participants (2)
-
Shue, Daniel G.
-
Torsten Thau