Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Reading email with PHP

  • 19-02-2009 3:15pm
    #1
    Registered Users, Registered Users 2 Posts: 849 ✭✭✭


    I am looking for a script which will read email from a pop3 server(maybe IMAP but intially pop) and save the email and its attachments to a mysql table.
    I am particularly looking for a script to get an attachment from the server -

    Without using PEAR if at all possible


Comments

  • Registered Users, Registered Users 2 Posts: 6,570 ✭✭✭daymobrew


    Is this homework?
    What work have you done?


  • Registered Users, Registered Users 2 Posts: 849 ✭✭✭petronius


    Just wanna rip emails from a variety of pop servers using php,
    I have email fn which dumps it into an array line by line
    dunno how to get the attachments off it


  • Registered Users, Registered Users 2 Posts: 885 ✭✭✭clearz


    You will need convert the multipart base64 sections into binary files. Take a look at this and you should be able to do it
    http://us2.php.net/base64_decode


Advertisement