everywhere in your application to easily send well designed admin-emails.
Now supports mailtype
simply set
Code:
/**
* Mail type, 'text' or 'html'
*/
$config['mailtype'] = 'html';
Send email and / or return a data-array
Code:
/**
* Send email
* Ion_auth either sends an email directly (and returns bool)
* or it returns a data-array, so that you can write your own email methods
* or both
* set to 'email', 'data' or 'both'
* Default : 'email'
*/
$config['send_email'] = 'email';
So you can easily do so something with calculated data directly after the registration, i.e. update some fields in the database or show the new user his user_id or make your own confirmation-process.
I tested as well as I could. It should be fully backward compatible.
As I am not yet on GitHub, I post the files here.