in reply to Setting the return path in Sendmail

What you want to do is set the Sender. There are many better ways to send mail in perl besides calling sendmail. Most of the other methods let you set the sender easily. My favorites include MIME::Lite, Net::SMTP, and Mail::Sendmail. See the perl faq under sending email.
  • Comment on Re: Setting the return path in Sendmail

Replies are listed 'Best First'.
Re: Re: Setting the return path in Sendmail
by merlyn (Sage) on Mar 14, 2001 at 18:33 UTC
    Well, the "return path" is not a header field. It's more officially called the "envelope from", or "From_". And -f does in fact set it, if you're permitted by the configuration.

    Of course, with SMTP as your first hop rather than sendmail, to some degree you have much more flexibility, including setting envelope from/to independent of the header from/to and sender.

    -- Randal L. Schwartz, Perl hacker