thx. I did achieve it by using join...
join('',@array)
________________________________
From: David Precious <[email protected]>
To: [email protected]
Sent: Wednesday, February 20, 2013 1:01 PM
Subject: Re: Email::Mime not able to send array in mesg body
On Wed, 20 Feb 2013 10:41:51 -0800 (PST)
Rajeev Prasad <[email protected]> wrote:
> hello follwoing code is sending empty email body. I am trying to send
> HTML content in body of mesg. It works if I use a string instead of
> array
So, er, use a string?
Why are you trying to pass an array as the body? What are you
expecting to happen? The argument name even ends in _str - there's a
clue there as to what it's expecting, no?
You can use join() to turn all the elements of the array into a string
- e.g.
body_str => join "\n", @array,
... that would give you all the elements in @array, with a newline
after each.
If, however, you're trying to send a multi-part message, and the array
contains the multiple parts, you want the 'parts' param, not 'body_str'.
--
David Precious ("bigpresh") <[email protected]>
http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan www.preshweb.co.uk/github
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/