Hey John -
I'm trying to force the "From" address on the email's header (envelope). In Perl I use:
$mailprog = "/usr/lib/sendmail -f '$client_webmaster_address";
open (MAIL, "|$mailprog $client_address") || die "Can't open $mailprog!\n";
print MAIL "From:", $client_webmaster_address, " \n";
print MAIL "Reply-to:", $client_webmaster_address, " \n";
print MAIL "To:", $ client_address, " \n";
print MAIL "Subject: Brochure Request\n";
print MAIL "\n\n";
print MAIL "Thank-You For Your Interest\n";
print MAIL "\n";
print MAIL "Name: $firstname $lastname", "\n";
close(MAIL);
If the $client_address (above) is valid but not correct and I don't use the -f option, then the bounced message ends up on our webserver. But with the -f option, it lands in the clients webmaster's mailbox. Using the "From" alone does not work.
I appreciate your time.
Thanks -
Mark