Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am trying to send my email attachment as pdf...?

Status
Not open for further replies.

bgreen

Programmer
Feb 20, 2003
185
CA
I want to send a FSG report as an attachment as pdf how can I do this? (right now it is txt)

Another option would to format the font size of the txt file but I am unsure how to do that also.

code I am using:

sendmail -t << EOF
To: ${RECIP}
Subject: Budget Variance Report for ${PREV_MTH}

$(uuencode /ora_common/${ORACLE_SID}/out/o${REQ_ID}.out \ ${line}_${PREV_MTH}.pdf)

EOF
 
I would rather user mail program but essentially it shoud work. I use Outlook on my desktop PC, and mails sent from AIX boxes containing uucode segments appears to have attachements in them.

Your script does not do the same?

By the way, there was another topic in here about creating mails with MIME attachements.

--Trifo
 

Here is the topic: Mail attachment from UNIX

thread80-646913 there is much more if you search this forum for words &quot;UNIX MIME mail&quot;

--Trifo
 
Is your text file in a PDF format? If not then you will need to run this past a PostScript utility first to create the PostScript Data Format file.

After that you can send the PDF file as an attachment using something like uuencode of mpack, or even a homebrew script as suggested above.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top