Hi all,

I am working with a host that has Mojo Mail installed.

What I would like to do is have the parse aspect of mojo receive the email sent to the command line email (piped to the mojo send mail script) grab the email, parse the information and then pass off the vars to a separate script in php either as post or get method so I can work with the variables with a php app as well.

Has anyone parsed email in perl and then passed the info off to php? asp? how about to another perl script?

I know that the mojo_send.pl file has the parsing handled, so what I thought could work would be to have that script stop shy of sending the email using mojo, and instead post the variables it has parsed to my php script.

Does perl have the ability to do this? The host I am working with does not have the ability to facilitate command line php email alias reception, so I am having to learn perl in a hurry.

Thanks in advance.

Edited by Chady -- fixed formatting of paragraphs

In reply to question about forwarding variables to php from perl by nathan0601

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.