Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: give perl an email

by pschoonveld (Pilgrim)
on Apr 18, 2000 at 00:49 UTC ( #7882=note: print w/replies, xml ) Need Help??


in reply to give perl an email

Well, not being familiar with qmail, my guess is that it doesn't actually take the data and mail it to $email. I would start by seeing what happens when you print data out to qmail. like while (<STDIN>) { print "taco\n";} If it magically gives you 'taco' (highly unlikely), you probably just need to email the results to whereever you want. Generic Mail Form Processor will show you how to do that.

Replies are listed 'Best First'.
RE: Re: give perl an email
by skazat (Chaplain) on Apr 18, 2000 at 01:27 UTC
    thats not what i'm asking ;) i want the other way... i want to send an email to perl and have perl do something with it, instead of using perl to send an email ;) think about majordomo, how you send commands to it by email and it gets back to you, that sort of stuff. it seems like a cool way to interact with a script.. or maybe just an old way...
      Right. Did you look at my response? Try reading from STDIN.

      By the way, you might want to rephrase your question-- it's not very clear (in fact, it's sort of meaningless) to say that you want to "send an email to perl". That just doesn't mean anything.

      What you want to do, as far as I can tell, is to have all incoming email messages handled by a Perl script. So, for example, if I set up a Perl script to handle my mail, all incoming mail would be piped to that Perl script, and it could do whatever it wished with the contents of the messages.

      You might want to take a look at Mark-Jason Dominus's My Life with Spam series. Part One is up on his site, but I can't seem to get to plover.com, so it's also on LinuxPlanet; Part Two and Part Three are both up on perl.com. The articles deal with filtering spam from your mail, but you may be able to get something useful out of them. Here's a part that deals specifically with how the mail message gets into your program.

        hey thanks!!!!
        i checked out the article, and its exactly what i was looking for. Mark-Jason Dominus made it so clear and his code is just super good. does anyone know where he lives? he mentioned that he had to go back to boulder.. i wonder if he lives there... if so, we're neighbors ;)

        thanks again!

        thanks ;) i tried to say <STDIN> but it got sucked in as a html <tag> so i get " " ;( i've been looking over majordomo and mhonarc code, but when theres 20 small scripts making them up, its sometimes are to figure out whats doing what.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2023-03-29 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (70 votes). Check out past polls.

    Notices?