Git Product home page Git Product logo

php-email-parser's Introduction

*** PLANCAKE PHP EMAIL PARSER ***

N.B.: if you deal with non-English languages, we recommend you install the IMAP PHP extension:
the Plancake PHP Email Parser will detect it and used it automatically for better results.

This library allows you to easily parse an email given its content (headers + body).

Usage example:


$emailPath = "/var/mail/spool/dan/new/12323344323234234234";
$emailParser = new PlancakeEmailParser(file_get_contents($emailPath));

// You can use some predefined methods to retrieve headers...
$emailTo = $emailParser->getTo();
$emailSubject = $emailParser->getSubject();
$emailCc = $emailParser->getCc();
// ... or you can use the 'general purpose' method getHeader()
$emailDeliveredToHeader = $emailParser->getHeader('Delivered-To');

$emailBody = $emailParser->getPlainBody();

For more info:
https://github.com/plancake/official-library-php-email-parser

-----------------------------------------

We love to hear from you ♥. Please, send us any feedback.
Even if you don't speak English, don't worry, use your native language (we have great confidence in Google Translate :-))
http://www.plancake.com/contact

Please contact us if you need any commercial support with the installation of any component or if you would like any customization:
http://www.plancake.com/contact

Please consider contributing with bug fixes or improvements:
[email protected]

Plancake homepage: http://www.plancake.com
Support: http://www.plancake.com/forums/forum/13/support-for-developers/
Subscribe to our blog: http://www.plancake.com/blog
Follow us on Twitter: http://twitter.com/plancakebakers
Follow us on Facebook: http://www.facebook.com/plancake
Donations ♥ : http://www.plancake.com/donate

"Plancake" and "Plancake Team" are trademarks of Daniele Occhipinti.
(by the way, what about using Plancake Team for team collaboration? team.plancake.com)

Brought to you by Danyuki Software Limited, a startup tech company based in London, UK.



Happy plancaking!

Daniele Occhipinti
Director and Founder of Plancake
email: [email protected]
skype: dan_plan (I can speak English and Italian)

php-email-parser's People

Contributors

joeyschulze avatar

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.