forked from djmattyg007/official-library-php-email-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
63 lines (42 loc) · 2.25 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
*** PLANCAKE PHP EMAIL PARSER ***
This is a fork of the original Plancake email parser, with various pull
requests submitted to the original repository merged in, as well as other
additional features.
The original readme is below.
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:
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)