Welcome Guest, Not a member yet? Register   Sign In
Receiving Email from within CI 4 and possible integration with the built-in Email cla
#1

(This post was last modified: 04-25-2025, 03:16 AM by gosocial2. Edit Reason: fıxed typos )

Hello friends and community members,

I reached a point where at least one of my CI4 apps needs to receive (or intercept incoming) e-mail, and it looks like the built-in Email class has no facility for it - which is natural.

Common sense would point to a 3rd party library, and in today's jungle of 'me too' products ranging from 'great fit's to misfits, I wanted to ask experts who might have already done this before. 

What do you think is the best email client library for integrating with CI4 compatible with PHP 8.3 (or 8.4 even better)?

My specific need is to receive (or intercept) emails sent to a specific account, do some processing (analytics, maybe also SPAM check), and then re-forward the same e-mail to a pre-defined set of recipients. I can do the sending already thanks to the built-in 

Email class, but receiving is not possible with the built-in classes and/or functions AFAIK.

Any ideas?

CodeIgniter Wizard (CRUD code generator for Mac) instantly scaffolds Bootstrap-based web applications with an administrative interface (admin templates include Bootstrap5)

Reply
#2

Hello,
I didn't test it, but this might be helpful:
https://github.com/vasim-seta/codeigniter-imap
Let me know if this works for you as I might need that functionality soon too Smile
Reply
#3

Here are a couple of pure php links also.

How to get emails using PHP and IMAP ?

How to Read Emails Using PHP
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB