Giter Site home page Giter Site logo

cnizzardini / php-imap Goto Github PK

View Code? Open in Web Editor NEW
28.0 11.0 7.0 111 KB

PHP-IMAP is used to retrieve messages from an IMAP server. It uses the PHP IMAP extension to access a given IMAP server and can execute several operations to retrieve different parts of the available messages. Currently it can retrieve information about the mail box, message headers, message data, and attachments.

PHP 100.00%

php-imap's Introduction

PHP-IMAP

PHP-IMAP is used to retrieve messages from an IMAP server. It uses the PHP IMAP extension to access a given IMAP server and can execute several operations to retrieve different parts of the available messages. Currently it can retrieve information about the mail box, message headers, message data, and attachments.

PHP-IMAP came about a few years ago due to a complete lack of quality libraries for working with PHPs IMAP functions, particularly dealing with attachments. I've just now gotten around to putting the project on github.

Features

  • Connects to IMAP server
  • Returns mailbox information
  • Access e-mail headers
  • List mailboxes
  • Read e-mails including attachments
  • Save attachments from remote imap server locally

Dependancies

  • PHP 5.x
  • php5-imap

Installation

You can either clone the project, download the project, or just copy & paste imap.class.php from github.

Documentation

When you download or clone, move the code into a directory you can run apache from. Load up the index.php page (example http://localhost/php-imap/index.php). This is a demo application. Each operation it executes is documented with the method it calls and the parameters it accepts. You can view the demo source to see how to use the class. I'll add more documentation later.

Licensing

Code is licensed under the MIT License.

php-imap's People

Contributors

cnizzardini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-imap's Issues

the script do not work properly.

the script don't show the attachments (mine does because I fix it), and emails only show properly in the inbox, in the other boxes if you ask for one message it get you the wrong one, only shows some requests correctly.

No Error Output if wrong mail credentials are used

If the incorrect details are used, for e.g. wrong password. Instead of returning an error, a PHP error is thrown, it might be better to return an error rather than PHP showing an error, that way a user response to that the credentials are wrong can be shown, rather than a PHP thrown error.

If I get time, I'll have a look at doing a PR for this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.