GenericAgent - send mail?

Moderator: crythias

Post Reply
tuxtom
Znuny expert
Posts: 173
Joined: 22 Sep 2016, 11:44
Znuny Version: 6.0.38
Real Name: Tux
Location: Germany
Contact:

GenericAgent - send mail?

Post by tuxtom »

OTRS 5.0.23

Hi all,
is it possible that the GenericAgent can send a mail after his job.

Regards, Tom.
-----------------------
Debian
OTRS 6.0.38, ITSM 6
bmichelot
Znuny newbie
Posts: 88
Joined: 31 Jul 2013, 16:52
Znuny Version: 5.0.20
Real Name: Benoît MICHELOT
Company: Amphenol Air LB France
Contact:

Re: GenericAgent - send mail?

Post by bmichelot »

Hi,
I have done it on a previous version to send reports.
See topic here : viewtopic.php?f=53&t=21845&p=86437#p86437
We stopped using the Generic Agent.
We are now using CronJob !
Regards,
tuxtom
Znuny expert
Posts: 173
Joined: 22 Sep 2016, 11:44
Znuny Version: 6.0.38
Real Name: Tux
Location: Germany
Contact:

Re: GenericAgent - send mail?

Post by tuxtom »

Hi,
i need to find and delete mails in the automatic GA job. How does it work in a CronJob?

Regards
-----------------------
Debian
OTRS 6.0.38, ITSM 6
bmichelot
Znuny newbie
Posts: 88
Joined: 31 Jul 2013, 16:52
Znuny Version: 5.0.20
Real Name: Benoît MICHELOT
Company: Amphenol Air LB France
Contact:

Re: GenericAgent - send mail?

Post by bmichelot »

Hi Tom,
If you need to select and delete tickets, the GA can do the job.
You juste have to set the filters parameters and set "Delete tickets" to yes in the Execute Ticket Commands section.
To be honest, I am note sure to have understood your request.
First you said that you want to send mails, and now you say that you want to delete mails...
Could you please provide more details on what you really want to do ?
Regards,
schulmann
Znuny wizard
Posts: 470
Joined: 20 Nov 2011, 16:08
Znuny Version: 6.5.4
Real Name: Schulmann

Re: GenericAgent - send mail?

Post by schulmann »

tuxtom wrote:is it possible that the GenericAgent can send a mail after his job.
Yes.

In the Generic Agent (Execute Ticket Commands) you can call a shell script with the ticket number and the ticket id.
In this script you can call /usr/bin/mail and include the ticket number if desired.
Znuny6/Debian/ESXi
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: GenericAgent - send mail?

Post by reneeb »

Why not set a dynamic field in the ticket when the GA did the job? Then you can use the ticket notifications...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
schulmann
Znuny wizard
Posts: 470
Joined: 20 Nov 2011, 16:08
Znuny Version: 6.5.4
Real Name: Schulmann

Re: GenericAgent - send mail?

Post by schulmann »

reneeb wrote:Why not set a dynamic field in the ticket when the GA did the job? Then you can use the ticket notifications...
We were not able to send a mail to an arbitrary mail address with a GA.
Is this possible?
Znuny6/Debian/ESXi
wurzel
Znuny guru
Posts: 3230
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: GenericAgent - send mail?

Post by wurzel »

Hi,

Generic Agent can NOT send mails. But Generic Agent can change settings on a ticket.


And as reneeb already wrote... a ticket notification can trigger on the changes and send mails.

Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
tuxtom
Znuny expert
Posts: 173
Joined: 22 Sep 2016, 11:44
Znuny Version: 6.0.38
Real Name: Tux
Location: Germany
Contact:

Re: GenericAgent - send mail?

Post by tuxtom »

Hi,
i solve the mail problem with a script.
Where can I actually check if the automatic GA job was successful or not?
A result of the GA would also be interesting.
In the system log I only see a note that the job has been executed.
Regards, Tom.
-----------------------
Debian
OTRS 6.0.38, ITSM 6
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: GenericAgent - send mail?

Post by reneeb »

That's something the script has to do...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply