Sample of reading mail

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

    Sample of reading mail

    Is there some code example how to read/send e-mail with PHP ?
    Beside this i need to pull out the attachment and to save it in some
    directory.

    Any idea?


  • Sjoerd

    #2
    Re: Sample of reading mail

    Intos wrote:
    Is there some code example how to read/send e-mail with PHP ? Beside
    this i need to pull out the attachment and to save it in some directory.
    How do you receive the email? POP3, mbox, IMAP, MAPI, Webmail, Maildir?

    Sending mail can be done with mail().

    Comment

    • Captain Paralytic

      #3
      Re: Sample of reading mail

      On 24 Sep, 06:52, "Intos" <in...@mail.com wrote:
      Is there some code example how to read/send e-mail with PHP ?
      Beside this i need to pull out the attachment and to save it in some
      directory.
      >
      Any idea?
      Anything wrong with the first 2 articles listed in the Google search
      of:
      php read email attachment
      ???

      Comment

      • J2Be.com

        #4
        Re: Sample of reading mail


        "Intos" <intos@mail.com ha scritto nel messaggio
        news:gbckil$mgv $1@localhost.lo caldomain...
        Is there some code example how to read/send e-mail with PHP ?
        Beside this i need to pull out the attachment and to save it in some
        directory.
        >
        Any idea?
        I cannot write down a full sample, that would be a bit long.

        You should parse the received message in the part of the attachments, detect
        the transfer encoding and decode the attached file(s).

        A document about decoding the Attachments


        A decent attachment decoder (from scratch) will require you hours of work.

        You can give a look at portions of code of the various php webmail
        (uebimiau, nocc, atmail, etc) scripts
        or crms like sugarcrm. They all should include a mime recognition and the
        complete parsing/decoding of the emails.


        Regards
        L. A. Iarrusso




        Comment

        Working...