Receiving IMAP & POP3 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: Receiving IMAP & POP3 (/showthread.php?tid=661) |
Receiving IMAP & POP3 - rfulcher - 01-02-2015 What is the suggested or best way to handle this in CI? I have read several posts on the net and stack overflow but can't get a good feel for what is the best. Also is there a potential that receiving mail will be integrated into email class & helper? The imap class listed here does not seem valid any longer https://github.com/bcit-ci/CodeIgniter/wiki/IMAP RE: Receiving IMAP & POP3 - rfulcher - 01-04-2015 Ok so i could not find any good guidance on this so I created a new class based on some online resources to pull IMAP emails(credit given in the file). This class will extend the base email class in CI. I have attached the MY_Email class as well as the other two classes that are needed, maybe someone else can use them. You will need to setup the email.php config file with these options. There are more features that need to be added but this gets me started. Code: $config['imap_host'] = 'xxx.xxx.xxx.xxx'; RE: Receiving IMAP & POP3 - rfulcher - 01-21-2015 Had some issues with the class. Updated them and they are attached. Thanks RE: Receiving IMAP & POP3 - rfulcher - 02-07-2015 Decided to put this into Git. https://github.com/iwatllc/CI_Imap.git RE: Receiving IMAP & POP3 - kabeza - 05-08-2015 (02-07-2015, 01:38 PM)rfulcher Wrote: Decided to put this into Git. Great! was looking for something similar. Thanks! RE: Receiving IMAP & POP3 - thomas.charles.tza_gmail.com - 06-20-2019 (02-07-2015, 01:38 PM)rfulcher Wrote: Decided to put this into Git. i manage to receive email but when the email has attachment i got this error "Message: file_put_contents(./tmp/14_f_jx3d35240_icon2.png): failed to open stream: No such file or directory Filename: libraries/MY_Email.php Line Number: 359" "$imap_attachemnt_dir = "./tmp/"" |