Help With Variable Thingy
- From: artmerar@xxxxxxxxx
- Date: Fri, 24 Oct 2008 08:08:53 -0700 (PDT)
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!
.
- Follow-Ups:
- Re: Help With Variable Thingy
- From: edcrosbys
- Re: Help With Variable Thingy
- From: Glenn Jackman
- Re: Help With Variable Thingy
- Prev by Date: Re: mv doubt
- Next by Date: Re: mv doubt
- Previous by thread: mv doubt
- Next by thread: Re: Help With Variable Thingy
- Index(es):
Relevant Pages
|