Help With Variable Thingy




Hi,

I am trying to format an email properly. We have a variable with a
message in it, something like this:

message="The Cat Jumped Over The Dog"

Great message eh? Anyhow, I can use the following command to insert
line feeds:

message=`echo "The Cat Jumped Over The Dog" | tr ';' '\n'`

That works fine from shell. But, we want to send it in an email, not
as an attachment. It does not translate to the email. We send the
variable to a Perl script which does the emailing for us:

$msg = MIME::Lite->new(
From =>$p_from,
To =>$p_emails,
Type =>'text/html',
Subject =>$p_subject,
Data =>$p_message
);
$msg->send;

How can I get the line feed for format correct in the email message???

Thank you!
.



Relevant Pages

  • Re: OO Design Advice
    ... intermediate format is arguably less useful in Ruby than in a more ... the feeds vary. ... This object needs to be sent to various feeds (usually XML, ... different format in which they want some of the items (eg, ...
    (comp.lang.ruby)
  • Re: Does the Kodak PULSE digital frame w1030s or w1030 work with private RSS feeds.
    ... configure the frame to display pictures based on my own RSS/ATOM feeds. ... wanted to say that you shouldn't let a simple thing such as RSS format ...
    (comp.home.automation)
  • Re: Does the Kodak PULSE digital frame w1030s or w1030 work with private RSS feeds.
    ... configure the frame to display pictures based on my own RSS/ATOM feeds. ... I want to share my photos with my parents and ... I honestly don't know the specs of the particular photo frame but I just ... wanted to say that you shouldn't let a simple thing such as RSS format ...
    (comp.home.automation)
  • Re: Replace Line Feed
    ... "nsv" wrote: ... I you format back to unwrap, ... I have a spread sheet with a lot of Line Feeds, ...
    (microsoft.public.excel.misc)
  • Re: RSS reader
    ... It felt particularly clunky when I was reading while it was downloading feeds. ... By the time I switched to Vienna, NNW didn't allow any export of the ... I use NNW Lite which doesn't have locked postings, so the fact that it stores the feeds in a proprietary format is completely irrelevant to me. ...
    (uk.comp.sys.mac)