Can someone tell me how to set reply-to in /bin/mail?
am 29.01.2006 06:53:00 von no_email
I'm sending from a linux bash script, something like this:
/bin/mail -s "$subject" "$recipients" < file_with_message_body
I've tried putting in
reply-to:
Reply-to:
From:
....and several other permutations followed by what I want as the reply-to address, but this just shows up in the body of the message.
Help!
Re: Can someone tell me how to set reply-to in /bin/mail?
am 30.01.2006 04:14:01 von Garen Erdoisa
no_email wrote:
> I'm sending from a linux bash script, something like this:
>
> /bin/mail -s "$subject" "$recipients" < file_with_message_body
>
> I've tried putting in
>
> reply-to:
> Reply-to:
> From:
>
> ...and several other permutations followed by what I want as the reply-to address, but this just shows up in the body of the message.
>
> Help!
In a temp file ~/temp.txt
From: me@example.com
To: someone@example.com
Reply-to: somewhere@example.net
Subject: Whatever
Test message body
Then in your script:
/bin/cat ~/temp.txt |/usr/sbin/sendmail -oi -f ${LOGNAME}@${HOSTNAME} -t
Re: Can someone tell me how to set reply-to in /bin/mail?
am 30.01.2006 04:16:34 von Neil Woods
On Sun, Jan 29 2006, no email wrote:
> I'm sending from a linux bash script, something like this:
>
> /bin/mail -s "$subject" "$recipients" < file_with_message_body
>
> I've tried putting in
>
> reply-to:
> Reply-to:
> From:
>
> ...and several other permutations followed by what I want as the
> reply-to address, but this just shows up in the body of the message.
>
> Help!
Set the environment variable REPLYTO to a valid address, either before
you run the script or in the script itself, before the mail command, e.g.
REPLYTO=fred@example.net
--
Neil.
We can defeat gravity. The problem is the paperwork involved.