Re: change reply-to address within mailx



I usually do something like this ..

# sendmail header function
fn_sendmail()
{
# Build sendmail header.
echo "From: ${MYEMAIL}"
echo "To: ${MAILTO}"
echo "Reply-to: ${MYEMAIL}"
echo "Subject: ${SUBJECT}"
echo "X-MSMail-Priority: High"
echo "importance: 1"
echo "Mime-Version: 1.0"
echo "Content-Type: text/plain"
echo

# Run the data function.
Hi <whoever>

This is a test email

Rgds
Me

# uuencode the attachments.
for k in ${ATTACH}
do
uuencode $k $k
done
}

# Call sendmail header and pipe to sendmail.
fn_sendmail | sendmail -t -oi

##

I have also used mutt for attachments which works very well .. but if
you dont want to install mutt, then the above will do :)

HTH
Mark Taylor

.