I'd like to add notification of events via fax or SMS from Perl to some existing applications.

The telephone numbers, user names etc are stored in a CSV file in the format of user id, user password, name, email address,notify. I can write code to parse/munge this CSV file easily. If notify = 2 notification is by fax. notify = 1 is by SMS. notify = 0 means no notification at all.

The end user can change how they wish to be notified by email or the Web. All this does is toggle the notify bit for that user if the user knows their own user number and password.

What I'm not so sure about is how to add fax/SMS notification functionality. Does anyone have easily modifiable scripts to enable something like this:

&sendfax(user_name,user_number,msg); &sendsms(user_name,user_number,msg);
I understand there are fax/sms gateways - how do you find out which are suitable for occasional use (free) or how to set up one yourself inside a company network?

Any and all advice gratefully received!

Thanks!

dmtelf


In reply to Sending SMSes (in UK) & faxes from Perl by dmtelf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.