Hello, I humbly seek the wisdom of the Perl Monks on the following challenge that has come my way. I'm new to Perl (from a programming aspect anyway) and new to this site. It definitely seems like the right place to be in order to develop my unused Perl programming skills. Right now I have a specific deliverable that is required and I have determined Perl to be the most effective way of meeting that deadline. I have written a little script that searches a log text file for a specific string, when it finds it I just have it print out that it found it right now. What I need the script to do is to send an email to the helpdesk that simply says "backup failed on server X" in the subject. That’s all, I thought, it would be simple and straight forward (LOL...) Every thing I can find seems to rely on other scripts and convoluted setups. I will be distributing this to 100's of servers and really would just like to keep everything short and within the same script if possible... Is there a simple way to do this or do I have to find a way to include something like SendMail or Mail:Mailer, etc...

In reply to Simple SMTP email within script... by jbodden

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.