New/Close Ticket - send mail to custom recipient

Moderator: crythias

Locked
maayanay
Znuny newbie
Posts: 63
Joined: 26 Feb 2014, 16:36
Znuny Version: 3.3.5

New/Close Ticket - send mail to custom recipient

Post by maayanay »

Hi,

When CSR open/close a ticket i would like the end user to receive an SMS with the ticket number and status.

I have a system the doing translate from mail to SMS what i need is a way to configure that when ticket is open/closed send mail to dynamicfieldvalue@mydomain.com with subject/body text.

'dynamicfieldvalue' will be the end user Phone Number.

Thanks.
OTRS Ver: 3.3.5
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: New/Close Ticket - send mail to custom recipient

Post by reneeb »

Write your own event module that listens for ArticleCreate and TicketStateUpdate events and send the mail... If you have OTRS development experience, this should be not too difficult...
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: New/Close Ticket - send mail to custom recipient

Post by crythias »

or just use standard notification events ...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
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: New/Close Ticket - send mail to custom recipient

Post by reneeb »

@crythias Standard notification system can't send an email to an address that is defined in a dynamic field or did I miss something?
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: New/Close Ticket - send mail to custom recipient

Post by crythias »

reneeb wrote:@crythias Standard notification system can't send an email to an address that is defined in a dynamic field or did I miss something?
it can't. I misread that there's an additional consideration.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
maayanay
Znuny newbie
Posts: 63
Joined: 26 Feb 2014, 16:36
Znuny Version: 3.3.5

Re: New/Close Ticket - send mail to custom recipient

Post by maayanay »

crythias wrote:or just use standard notification events ...
you are the man!
OTRS Ver: 3.3.5
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: New/Close Ticket - send mail to custom recipient

Post by reneeb »

Can you show us how you configured the notifications? How did you set the recipient address?
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
maayanay
Znuny newbie
Posts: 63
Joined: 26 Feb 2014, 16:36
Znuny Version: 3.3.5

Re: New/Close Ticket - send mail to custom recipient

Post by maayanay »

reneeb wrote:Can you show us how you configured the notifications? How did you set the recipient address?
well it didn't worked. i just set a notification and i statically i enter the mail address at the "recipient email address" field and it worked and i thought that it will work also if i enter TAGs in this fieled but it is not working.

I didn't notice your post that mail address field doesn't accept dynamicfield tags...

any idea? i don't have any developing skills
OTRS Ver: 3.3.5
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: New/Close Ticket - send mail to custom recipient

Post by crythias »

how often is this going to vary from customer, agent, customer to customer, etc.?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
maayanay
Znuny newbie
Posts: 63
Joined: 26 Feb 2014, 16:36
Znuny Version: 3.3.5

Re: New/Close Ticket - send mail to custom recipient

Post by maayanay »

crythias wrote:how often is this going to vary from customer, agent, customer to customer, etc.?
Didn't understand. it is actually not an agent or customer but an End User.

CSR open ticket for an end user and mention in the ticket his phone number at a dynamic field.
Than i want to send SMS to the end user that a ticket was opened and for that i need to send MAIL to PHONENUMBERDYNAMICFIELD@mydomain.com. When agent close the ticket same will happen to notify the end user the ticket is closed.

end user don't have access to OTRS system in anyway.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: New/Close Ticket - send mail to custom recipient

Post by crythias »

Yes, you'll need to create a ticket event.
viewtopic.php?f=60&t=10090

(It's a bit old, but you can also pull DynamicField_myField).
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
maayanay
Znuny newbie
Posts: 63
Joined: 26 Feb 2014, 16:36
Znuny Version: 3.3.5

Re: New/Close Ticket - send mail to custom recipient

Post by maayanay »

crythias wrote:Yes, you'll need to create a ticket event.
viewtopic.php?f=60&t=10090

(It's a bit old, but you can also pull DynamicField_myField).
well, i understand nothing in developing and in pearl so i guess SMS option is a no for me.
why the mail address field doesn't support TAG's? it is something that cannot be done or just no one asked for it?
OTRS Ver: 3.3.5
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: New/Close Ticket - send mail to custom recipient

Post by crythias »

maayanay wrote:why the mail address field doesn't support TAG's? it is something that cannot be done or just no one asked for it?
probably the latter. The need for your specific case has a universe of you at the moment.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
maayanay
Znuny newbie
Posts: 63
Joined: 26 Feb 2014, 16:36
Znuny Version: 3.3.5

Re: New/Close Ticket - send mail to custom recipient

Post by maayanay »

crythias wrote:
maayanay wrote:why the mail address field doesn't support TAG's? it is something that cannot be done or just no one asked for it?
probably the latter. The need for your specific case has a universe of you at the moment.
universe of me? i didn't understand.
and my case is not that specific... because once you open it for TAG's the sky is the limit, people can think on whatever they want and they can do (is not only for my SMS case)
OTRS Ver: 3.3.5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: New/Close Ticket - send mail to custom recipient

Post by jojo »

if you need such a functionality we would be happy to develop it for you.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
maayanay
Znuny newbie
Posts: 63
Joined: 26 Feb 2014, 16:36
Znuny Version: 3.3.5

Re: New/Close Ticket - send mail to custom recipient

Post by maayanay »

jojo wrote:if you need such a functionality we would be happy to develop it for you.
yes i need. can you send me price offer to my email?
OTRS Ver: 3.3.5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: New/Close Ticket - send mail to custom recipient

Post by jojo »

please send a mail to sales@otrs.com
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked