Receiving IMAP & POP3 |
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
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';
Had some issues with the class. Updated them and they are attached.
Thanks (02-07-2015, 01:38 PM)rfulcher Wrote: Decided to put this into Git. Great! was looking for something similar. Thanks!
Enrique
https://beza.com.ar (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/"" |
Welcome Guest, Not a member yet? Register Sign In |