Re: change reply-to address within mailx
- From: Mark Taylor <mky@xxxxxxxxxx>
- Date: Thu, 28 Feb 2008 04:35:18 -0800 (PST)
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
.
- Follow-Ups:
- Re: change reply-to address within mailx
- From: Toralf Förster
- Re: change reply-to address within mailx
- References:
- change reply-to address within mailx
- From: Toralf Förster
- Re: change reply-to address within mailx
- From: sjm
- change reply-to address within mailx
- Prev by Date: Re: How to transfer X11 auth across sudo invocation
- Next by Date: AIX and DS4300 Errors
- Previous by thread: Re: change reply-to address within mailx
- Next by thread: Re: change reply-to address within mailx
- Index(es):