Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: (OT) Send Mail

by spazm (Monk)
on Mar 29, 2012 at 16:42 UTC ( #962439=note: print w/replies, xml ) Need Help??

in reply to (OT) Send Mail

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/; 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962439]
[choroba]: https://metacpan. org/author/ SIMBABQUE might know. He's a heavy Ingress player.
[Corion]: choroba: Yeah, I know :) I might ask him at the GPW :))
hippo giggles at the thought of people "playing" Ingres
[Corion]: The data is the game ;)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-03-19 09:18 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (236 votes). Check out past polls.