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

Hi,

Am trying to send multiple message using one single Data tag in MIME

 Data    => $message

Is there an option to merge two or more message into one single message while sending the data.

 Data    => $message1, $message2, $message3

Replies are listed 'Best First'.
Re: Send multiple message using MIME
by kcott (Archbishop) on Aug 16, 2013 at 09:22 UTC

    G'day Franklin,

    Welcome to the monastery.

    I'm unable to find a module called MIME. There are, however, lots of modules with MIME in their names. You need to tell us which one you're using.

    A couple of suggestions:

    • MIME::Entity: Data => [$message1, $message2, $message3]
    • MIME::Lite: Data => join("\n" => $message1, $message2, $message3)

    -- Ken

      Thanks Ken, Now am able to send multiple messages as single message.

      I am using:
      MIME::Lite: Data => join("\n" => $message1, $message2, $message3)
Re: Send multiple message using MIME
by McA (Priest) on Aug 16, 2013 at 09:24 UTC

    You should at least tell us which modules you are using. And what you mean with merging

    McA