[rt-users] Send email from script

Potla, Ashish Bassaliel c_apotla at qualcomm.com
Tue Jul 21 14:34:42 EDT 2009


You can actually send out emails via scrips with user defined scrip-Action.

The action is but a bit longwinded, but I use it for some of  my queues to tweak the outgoing emails (Like add/remove an email id from the outgoing email for all email transactions -- for instance).

Let me know if you want the user defined action.

-Ashish

________________________________________
From: rt-users-bounces at lists.bestpractical.com [rt-users-bounces at lists.bestpractical.com] On Behalf Of Gene LeDuc [gleduc at mail.sdsu.edu]
Sent: Tuesday, July 21, 2009 11:32 PM
To: Tariq Doukkali
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Send email from script

Hi Tariq,

The obvious answer: You select one of the Notify actions that generate
e-mail and use a template to design the e-mail.

But you probably would've figured that out for yourself.

If you are asking how to send an e-mail from a scrip with a user-defined
action, I don't think you can.  I get around this shortcoming by
generating some other transaction in the script code and then use that
transaction to trigger a scrip that does the Notify action.  Convoluted,
but it works.

We don't use the Priority field in our tickets, so I use it to trigger
stuff like that.

Have fun!
Gene

Tariq Doukkali wrote:
> Hello,
>
> how can I send an email from a script ???
>
> Many thanks

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales at bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


More information about the rt-users mailing list