Easiest way to get an SMS (via SMTP) notification

Hi all, I would like to have OTRS send a notification to my cellular phone via SMS each time a new ticket is opened, I use the Clickatel SMTP->SMS gateway currently for other important system notifications. I'm looking at the Generic Agent system, having it call a script which would just send the required email to Clickatel, but it looks like the script is only given the ticket id + number, not anything more, interesting, specifically, I'd like the SMS to include the subject, and perhaps the submitter email address or a useful portion thereof. I could make the script dig the subject (& email) out of the database itself no trouble, but that wouldn't be very clean, it would be much better if the Generic Agent system could pass this interesting information on the command line so that the script (and me) needs to know nothing about the structure of the OTRS database. I can't see anywhere that this functionality (extended info on the command line to generic agents) can be turned on, and my PERL isn't good enough to really see where (or how) to add it, can anybody point me in the right direction? Or better yet, has anybody done it already? No sense re-inventing the round rolling things. Thanks in advance, James Sleeman **

On 11/13/04 2:57 AM, "James Sleeman" wrote:
Or better yet, has anybody done it already? No sense re-inventing the round rolling things.
I don't know how things are in your part of the world, but this is how I have it set up-- I have an email address that is like a mini-mailing list, it forwards messages to both my regular email address as well as my phone's email address. Here in the states many if not most of the service providers have it set up so emails can be sent to phones as text messages. So I get a regular email about a new ticket, I also get a text message to my phone. Very handy. I don't know how this is different than using SMS, but it works very well for me. -- Wes Plate Automatic Duck, Inc. http://www.wesplate.com http://www.automaticduck.com

Wes Plate wrote:
I have an email address that is like a mini-mailing list, it forwards messages to both my regular email address as well as my phone's email address. Here in the states many if not most of the service providers have it set up so emails can be sent to phones as text messages
*Hmm, yes that is one way, but the problem is that an SMS is limited to, what, about 100 characters or something. I'd like to massage the data going into the sms "email" (to clickatel) so that it maximises the amount of useful information. Eg I'd like an sms like "Hr s th sbjct wtht vwls - jim@somesite" (ie removing vowels in the subject, trimming the email so it just identifies the user. I guess I could setup a filter on an email address that gets new ticket notifications to massage it, and then forward that to the SMTP gateway, but that's even dirtier than digging the info from the database in my generic agent command, there must be an easy way I can just pass the subject and sender onto the command line for the generic agent. --- James Sleeman *

Maybe this mailing list isn't the right place for this kind of question. Try the Development community of OTRS (dev@otrs.org). Hth, Edgar -----Oorspronkelijk bericht----- Van: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] Namens James Sleeman Verzonden: zondag 14 november 2004 3:38 Aan: User questions and discussions about OTRS. Onderwerp: Re: [otrs] Easiest way to get an SMS (via SMTP) notification Wes Plate wrote:
I have an email address that is like a mini-mailing list, it forwards messages to both my regular email address as well as my phone's email address. Here in the states many if not most of the service providers have it set up so emails can be sent to phones as text messages
*Hmm, yes that is one way, but the problem is that an SMS is limited to, what, about 100 characters or something. I'd like to massage the data going into the sms "email" (to clickatel) so that it maximises the amount of useful information. Eg I'd like an sms like "Hr s th sbjct wtht vwls - jim@somesite" (ie removing vowels in the subject, trimming the email so it just identifies the user. I guess I could setup a filter on an email address that gets new ticket notifications to massage it, and then forward that to the SMTP gateway, but that's even dirtier than digging the info from the database in my generic agent command, there must be an easy way I can just pass the subject and sender onto the command line for the generic agent. --- James Sleeman * _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/

On Sun, 2004-11-14 at 02:37, James Sleeman wrote:
Wes Plate wrote:
I have an email address that is like a mini-mailing list, it forwards messages to both my regular email address as well as my phone's email address. Here in the states many if not most of the service providers have it set up so emails can be sent to phones as text messages
*Hmm, yes that is one way, but the problem is that an SMS is limited to, what, about 100 characters or something. I'd like to massage the data going into the sms "email" (to clickatel) so that it maximises the amount of useful information. Eg I'd like an sms like
"Hr s th sbjct wtht vwls - jim@somesite" (ie removing vowels in the subject, trimming the email so it just identifies the user.
Actually about 160, but most modern phones can handle multi-packet messages (these are sent as multiple SMS messages). If you use a device and supplier that supports GPRS/or 3G you could probably read any e-Mail directly from the phone anyway. So I would suggest the approach of sending sender and subject only is the most appropriate. At least two UK phone suppliers offer a similar mail notification service that notifies on incoming mail in this manner, and when these services work it usually results in a single SMS. I have my SE p900 set to regularly scan my mail and notify me of any changes. I think this is facility that is available on most Symbian 60 or UIQ phones (though occasionally only through third party apps) However, I am given to understand the american mobile phone infrastructure is a little underdeveloped and out sync with the rest of the planet. So this approach may not be viable in the states. But why not consider using procmail? In theory you should be able to forward just the incoming mail header when the message arrives! Check out the procmail man pages...
I guess I could setup a filter on an email address that gets new ticket notifications to massage it, and then forward that to the SMTP gateway, but that's even dirtier than digging the info from the database in my generic agent command, there must be an easy way I can just pass the subject and sender onto the command line for the generic agent.
--- James Sleeman * _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
--
Meum est propositum
In tabernum mori,
Graham Smith
participants (4)
-
Edgar Meij
-
Graham Smith
-
James Sleeman
-
Wes Plate