I don't have an answer for your problem, but I have been in a similar situation and will offer this:

Recently, I wrote an application that sends me a text message to let me know when my hockey teams are playing so I remember to record the games on my PVR. I had problems with emailing the messages, so I got myself a Twilio account. I put $20 (CAN) on the account two months ago, and it's still going strong. It costs me ~$1 per month for the phone number, and $0.0158 per each text message sent.

The Twilio account is extremely easy to use with Perl. Just install SMS::Send::Twilio, and then:

use warnings; use strict; use SMS::Send; my $twilio_sender = SMS::Send->new( 'Twilio', _accountsid => 'API account ID', _authtoken => 'API auth token', _from => '+Your Twilio phone number' ); my $sent = $twilio_sender->send_sms( text => "Hey stevieb!", to => "+phone_number" ); if (! $sent) { warn "Couldn't send message!"; }

A huge benefit is that because it's a completely separate phone number than my personal one, it shows up in my text messages on my iPhone as a completely different entity (ie. you can create a label/contact for it so it doesn't end up in a text thread to/from yourself).


In reply to Re: catch die from say by stevieb
in thread catch die from say by PierreForget

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.