$address = $::opt_a || ($::opt_t ? $testaddress
: $thanks ? $thanksaddress : $bugaddress);
- # Users address, used in message and in Reply-To header
+ # Users address, used in message and in From and Reply-To headers
$from = $::opt_r || "";
# Include verbose configuration information
$headers{'Cc'} = $cc if ($cc);
$headers{'Message-Id'} = $messageid if ($messageid);
$headers{'Reply-To'} = $from if ($from);
+ $headers{'From'} = $from if ($from);
return \%headers;
}