CodeIgniter Forums
Is it possible to use the email library outside of codeigniter? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Is it possible to use the email library outside of codeigniter? (/showthread.php?tid=69757)



Is it possible to use the email library outside of codeigniter? - desbest - 01-13-2018

Is it possible to use the email library outside of codeigniter?


RE: Is it possible to use the email library outside of codeigniter? - skunkbad - 01-13-2018

It is, but why? There are some really nice email packages out there, like Swiftmailer: https://packagist.org/packages/swiftmailer/swiftmailer


RE: Is it possible to use the email library outside of codeigniter? - desbest - 01-16-2018

Yes I know there's some good packages and classes for SMTP mail, but I'm curious if I can use the Codeigniter email library outside of Codeigniter because I find it easy to use.

If so, how do I do it?


RE: Is it possible to use the email library outside of codeigniter? - dave friend - 01-16-2018

(01-16-2018, 04:28 AM)desbest Wrote: Yes I know there's some good packages and classes for SMTP mail, but I'm curious if I can use the Codeigniter email library outside of Codeigniter because I find it easy to use.

If so, how do I do it?

Find all references to other CI classes, functions, and constants that occur in CI_Email and figure out what is needed to convert that reference to run outside of CI which will, in part, require you recursively use this sentence to evaluate each and every reference you find.