Swiftmail Library for CodeIgniter |
[eluser]Glazz[/eluser]
Hello, I was finding problems using the email library from CodeIgniter because the config/email.php file was not working the way it was supposed to, and InsiteFX told me on my topic that he was using Swiftmail, so wanted to use it to, but i knew that it get's a little messy to setup and use it so i created this small library to help me ![]() You can assign variables and use them on your email files like so email/welcome Code: Hello {user}, The library itself: https://gist.github.com/2190913 How to use: Code: $this->email->template('email/welcome'); You need to create the file config/email.php and set the variables there Code: <?php You need to edit the path to the Swiftmail installation on the top of the file ![]() Some ideas came from phpBB and from CodeIgniter !
[eluser]InsiteFX[/eluser]
I would rename your library because it's the same as CodeIgniter's and may conflict with it!
[eluser]Glazz[/eluser]
For what i need it doesn't conflict since it loads only this library not the CI one.
[eluser]InsiteFX[/eluser]
Ok, but just pointing out you need to be careful with naming libraries.
[eluser]Zaher Ghaibeh[/eluser]
hi, have you consider trying swift-mailer spark library ? http://s.zah.me/GQnFvz i didnt use it yet ( am planing to ![]() |
Welcome Guest, Not a member yet? Register Sign In |