There are a number of questions here.
I'm curious why you are using temporary files
rather than pipes. You are creating an
unnecessary security risk by doing so.
I also don't understand why you are appending
the encoded message to another file rather
than using the existing encoded file. That
means that whatever was in the file before
will be at THE TOP of the message, which is
where the header should be. As for the header,
I think that uuencode creates an adequate
header for this puspose. One might also ask
why you are using uuencode instead of MIME,
but uuencode should work.
The main point, however, is what mailer is
RECEIVING the message and what is the
problem with the message AS RECEIVED.
Tom
--
Quote:
Originally Posted by nancydrew72
I'm on RHEL 6.3 and the email is being sent via postfix.
The command is being executed as part of a script. This same script is running on a different server but on RHEL 5.3 and works fine.
TEMPFILE=/tmp/MAIL$$.PDF
TEMPUU=/tmp/MAIL$$.UU
MEMOFILE=/tmp/MEMO$$.txt
uuencode ${TEMPFILE} report.pdf > ${TEMPUU}
cat ${TEMPUU} >> ${MEMOFILE}
mail -s "${SUBJECT}" ${EMAILADDR} < ${MEMOFILE}
Thanks for your help.
Regards,
Nancy Drew
|