This is not really a perl question, it is a system configuration question. You need to:

  1. Dial your ISP and create an internet interface through that connection.
  2. Adjust the configuration of your email routing to use the new dialup interface.
  3. Send an email as normal.

The first two steps can be solved by reading your system documentation. Once they are done, the last step will be easy.

The problem with this approach, is that once your dial-up connection is created, the alert that tests if you can ping an external IP will not fail any more, so either your dial-up connection will hangup, and you will get a whole series of alert email as the alert fails and succeeds in a cycle with the dial-up connection, or the dial-up connection does not hang up, in which case the whole alert will become useless, as it will just end up testing the backup dial-up connection instead of your main one.

Instead, can I suggest that you investigate sending some alerts via SMS text message as well as by email. Create a class of most serous problems that go via text as well, and include the 'no external connectivity' problem in that class. That way you are not confusing the alerting with your backup connection.


In reply to Re: Sending info through dialup by chrestomanci
in thread Sending info through dialup by dirtdart

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.