kleinbiker7 has asked for the wisdom of the Perl Monks concerning the following question:

I would like to create emails with these headers:

From: Me <webmaster\@www.xx.com>
Subject: The Subject
To: Mini Me <robert\@idi.net>
Reply-to: comments\@xx.com
Errors-to: bounces\@xx.com

Body of email....

It seems that MIME::Lite only supports From: To: and CC: How can I add the Reply-to: and Errors-to: headers using MIME::Lite? Thanks.

Robert

Replies are listed 'Best First'.
Re: MIME::Lite questions
by KM (Priest) on Apr 25, 2002 at 18:02 UTC
    Add stuff to your param list (ones with a hyphen need to be in quotes)

    $msg = MIME::Lite->new(From =>$from, 'Reply-to' =>$reply_to, 'Errors-to' => $errors_to, To =>$to, Cc =>$cc, Bcc =>$bcc, Subject =>$subject, Type =>'TEXT', Encoding =>$transfer_encoding, Data =>$body );

    Cheers,
    KM

      It works for me! Thank you so much