Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

email output

by Anonymous Monk
on Aug 26, 2004 at 14:52 UTC ( [id://386039]=perlquestion: print w/replies, xml ) Need Help??

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

Hello monks , this is what I have
$message = "some text I want to send by email"
and then I have fileA which has list of all filenames one line at a time.... this is what I did to send both info by email to me
$message = $message . "`cat $fileA`"; $messageToSend | mailx commad
my output from the file are all read in online somthing like:
<file1 <file2 <file3
I do not want to open the file and read one line at a time and so on... I need somthing like this
<file1 <file 2
and so on not on concatenated in one line . thanks for any help

Replies are listed 'Best First'.
Re: email output
by dragonchild (Archbishop) on Aug 26, 2004 at 15:01 UTC
    I'm not quite sure what you're asking, but why don't you run whatever it is you're running once per file?

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested

Re: email output
by csuhockey3 (Curate) on Aug 26, 2004 at 18:13 UTC
    Are you sending multiple emails -- is this form data or just a report? I am not quite sure what you mean by I have fileA which has list of all filenames one line at a time. Can you post some more code so we can help?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://386039]
Approved by Joost
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found