In a slightly more readable form, the original posters intended message:
I know I should be asking a perl query here but I have a very simple Shell Doubt. Please help..

I need to send an email with a HTML body and an excel attach to it, its not happening. The code I am using is as follows :

( echo "From: $MAILFROM" echo "To: $MAIL_TO" echo "Subject: $SUBJECT$MAIL_DATE$hr" echo "MIME-Version: 1.0" echo 'Content-Type:multipart/mixed; boundary="A_MIME_B +OUNDARY"' echo "--A_MIME_BOUNDARY" echo "Content-Type:text/html" echo "Content-Disposition:inline" echo "" )>AHTMLFILE ( echo "--A_MIME_BOUNDARY" echo "Content-Type:application/vnd.ms-excel; charset=U +S-ASCII; name=90_Day_Avg_SLA.xls" echo "Content-Transfer-Encoding:x-uuencode" echo "Content-Disposition: attachment; filename=90_Day +_Avg_SLA.xls" uuencode 90_Day_Avg_SLA.xls 90_Day_Avg_SLA.xls echo "" echo "--A_MIME_BOUNDARY" )>AXLSFILE cat AHTMLFILE header_cpc.html AXLSFILE | /usr/lib/sendmail $MAIL_TO
Please help, Its urgent.

In reply to Re: (OT) Send Mail by spazm
in thread (OT) Send Mail by puneet.keswani

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.