Using PHP to extract email attachment

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • matt  roberts

    Using PHP to extract email attachment

    Hi...

    I'm interested in using PHP to extract attachments from a standard unix
    ..mbox file...anybody done this or have a link to resources that might
    help? There is plenty on sending mail, but not much on
    reading/processing mail with php...

    Thx!
    matt

  • Tim Van Wassenhove

    #2
    Re: Using PHP to extract email attachment

    On 2004-12-29, matt roberts <mattroberts@gm ail.com> wrote:[color=blue]
    > Hi...
    >
    > I'm interested in using PHP to extract attachments from a standard unix
    > .mbox file...anybody done this or have a link to resources that might
    > help? There is plenty on sending mail, but not much on
    > reading/processing mail with php...[/color]

    http://www.php.net/imap and the imap_fetchstruc ture function is a good
    place to start :)


    --
    Met vriendelijke groeten,
    Tim Van Wassenhove <http://www.timvw.info>

    Comment

    • Daniel Tryba

      #3
      Re: Using PHP to extract email attachment

      matt roberts <mattroberts@gm ail.com> wrote:[color=blue]
      > I'm interested in using PHP to extract attachments from a standard unix
      > .mbox file...anybody done this or have a link to resources that might
      > help? There is plenty on sending mail, but not much on
      > reading/processing mail with php...[/color]

      What have you searched for then? Searching for mbox and php came up with
      a pear class called Mail_Mbox for reading mbox files. You'll just need
      to parse the data, which can again be done with another pear class:
      Mail_Mime. Alternatively you could use the imap/pop3 extensions if
      applicable.

      Comment

      • Julien Dantec

        #4
        Re: Using PHP to extract email attachment

        But what about syntax to open local mbox file ? PHP imap_open is
        intended to do that but... HOW ?

        Tim Van Wassenhove wrote:[color=blue]
        > On 2004-12-29, matt roberts <mattroberts@gm ail.com> wrote:
        >[color=green]
        >>Hi...
        >>
        >>I'm interested in using PHP to extract attachments from a standard unix
        >>.mbox file...anybody done this or have a link to resources that might
        >>help? There is plenty on sending mail, but not much on
        >>reading/processing mail with php...[/color]
        >
        >
        > http://www.php.net/imap and the imap_fetchstruc ture function is a good
        > place to start :)
        >
        >[/color]

        Comment

        Working...