CodeIgniter Forums
Reading POP3 Email... or widgetize? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Reading POP3 Email... or widgetize? (/showthread.php?tid=5425)

Pages: 1 2


Reading POP3 Email... or widgetize? - El Forum - 01-21-2008

[eluser]codelearn[/eluser]
Hey guys,

I have a general question to the experienced PHP'ers in this forum. My company (a dot com) wants to enable its users to be able to read their POP email from our page instead of through their regular email source.

My question is about the resource intensity of the various PHP scripts which I found on the web that enable me to do this exact thing. We have a fairly large amount of users, and I know that sites like Mail2Web have a large server farm to handle this sort of thing.

Anyone here in the know about a CI Library written for this purpose, or the resources necessary to run an operation of that scale?

Thanks.

EDIT: Forgot to mention: our second option is to partner with a company like Mail2Web so they can provide us with the necessary widget.


Reading POP3 Email... or widgetize? - El Forum - 01-21-2008

[eluser]Eric Cope[/eluser]
I may be reading your post incorrectly, but would any of these work for you?
http://www.squirrelmail.org/
http://www.horde.org/
http://roundcube.net/

They are not CI to my knowledge (please don't flame me), but they do allow you to read pop mail via the web.


Reading POP3 Email... or widgetize? - El Forum - 01-21-2008

[eluser]ekeretex[/eluser]
I agree with Eric here. You're better off not re-inventing the wheel here.
RoundCube is really slick (though it's still in beta) and is skinnable so you can easily integrate it with your site.


Reading POP3 Email... or widgetize? - El Forum - 01-21-2008

[eluser]codelearn[/eluser]
[quote author="ekeretex" date="1200974562"]I agree with Eric here. You're better off not re-inventing the wheel here.
RoundCube is really slick (though it's still in beta) and is skinnable so you can easily integrate it with your site.[/quote]

Agreed... my main concern however is 10,000 people using this every day.


Reading POP3 Email... or widgetize? - El Forum - 01-21-2008

[eluser]ekeretex[/eluser]
Should work if you're on a VPS or on your own box.
Go ahead and install it on a test box and load test it to make sure.

I use httperf but this page has a list of various load testing tools.


Reading POP3 Email... or widgetize? - El Forum - 01-25-2008

[eluser]sophistry[/eluser]
http://codeigniter.com/wiki/imap_pop_class/


Reading POP3 Email... or widgetize? - El Forum - 03-05-2008

[eluser]phpwebdev[/eluser]
[quote author="sophistry" date="1201306293"]http://codeigniter.com/wiki/imap_pop_class/[/quote]


Is there any way to get (download) attachment files on emails with Your class ?


Reading POP3 Email... or widgetize? - El Forum - 03-05-2008

[eluser]sophistry[/eluser]
http://ellislab.com/forums/viewthread/59858/

that link is another thread with a recent post about this class.

there's not much external documentation but, there are lots of comments in the code!

basically, you need to look at the code and look for the file writing section.
you'll need two things: a directory that the webserver has write permissions to and and attachment in an email.

use the wiki page example to get an email. once you can do that, just add these two functions
then run the class functions:

// set your attachement path
set_IMAP_attachment_dir('path/to/dir')
// get first email in queue and store the attachment
grab_email_as_array_and_store(1)

HTH.


Reading POP3 Email... or widgetize? - El Forum - 07-10-2012

[eluser]Mohammad Fakira[/eluser]
how can we use that attachment code ???

give any examples please to retrieve attachment from email

thank you


Reading POP3 Email... or widgetize? - El Forum - 07-10-2012

[eluser]sophistry[/eluser]
looks like EllisLab recently detached their old wiki pages and moved everything to github wiki:

[url=https://github.com/EllisLab/CodeIgniter/wiki/peeker
]https://github.com/EllisLab/CodeIgniter/wiki/peeker
[/url]

unfortunately, they also detached the extensive thread attached to the old wiki page...

there is documentation at the peeker github site:

http://github.com/sophistry/peeker