Welcome Guest, Not a member yet? Register   Sign In
Use 2 email configuration
#5

I sincerely wanted to avoid too many turns and requests for instances, I did a try like this:

I've created in addition to the default file email.php in the config folder, a second file with the other configuration.

so to use the second account I do so:

Code:
$config_pec = $this->config->load('email_pec', true);
$config_pec = $this->config;
// Send new config to email class
$this->email->initialize( $config_pec->config['email_pec'] );

Send the amil I need, and then to return to the initial configuration, I do the same thing by referring to the default email.php file

Can it be a solution?

Do you see things that could also cause problems in the future?
Reply


Messages In This Thread
Use 2 email configuration - by serialkiller - 10-31-2017, 01:18 AM
RE: Use 2 email configuration - by dave friend - 10-31-2017, 08:47 AM
RE: Use 2 email configuration - by serialkiller - 11-06-2017, 08:14 AM
RE: Use 2 email configuration - by ivantcholakov - 11-06-2017, 11:38 AM
RE: Use 2 email configuration - by serialkiller - 11-07-2017, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB