Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.


In reply to RE: RE: Re: give perl an email by btrott
in thread give perl an email by skazat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found