: >         I'm presently trying to send out mail where the sender and from fields
: > are different.  I'm using the line
: > 
: >   env - QMAILUSER=$From QMAILSUSER=$Sender qmail-inject $Recipient < msg
: > 
: > and the mail arrives with a "From " string of $Sender$From, no "Sender:" line,
: > and a "From:" field of $From.  Is there any way to get the "Sender:" field in
: > there (I already tried putting it in the message) and to get the "From " field
: > to just show the sender and not a concatenation of the two strings?
: > 
: 
: If you are trying to send the retuned mail someplace else, modify the 
: Return-Path: emailaddress

Actually, I hadn't tried modifying that line directly but I did find that if
I specified QMAILSUSER and QMAILSHOST along with QMAILUSER then it worked.
The values of the QMAILS variables get put in the Return-Path and From fields
and the other get's put in the From: field.

-- 
  Matthew Harrell                          Beauty is in the eye of the beer
  Simulation Technology Division, SAIC      holder.
  [EMAIL PROTECTED]

Reply via email to