fix for .env in mail api
This commit is contained in:
@@ -162,8 +162,8 @@ class Login extends MY_Controller {
|
|||||||
// $this->email->send();
|
// $this->email->send();
|
||||||
|
|
||||||
|
|
||||||
$mg = Mailgun::create( '8d6b5f67d2eb98a75211e2557b00fbfb-e31dc3cc-046e9e0d' ); // For US servers
|
$mg = Mailgun::create( $_ENV['MAIL']['APIKEY'] ); // For US servers
|
||||||
$mg->messages()->send( 'mg.monpas.nl', [
|
$mg->messages()->send( $_ENV['MAIL']['DOMAIN'], [
|
||||||
'from' => 'info@monpas.nl',
|
'from' => 'info@monpas.nl',
|
||||||
'to' => $email,
|
'to' => $email,
|
||||||
'cc' => 'rfranke@framework-ed.nl',
|
'cc' => 'rfranke@framework-ed.nl',
|
||||||
@@ -172,7 +172,7 @@ class Login extends MY_Controller {
|
|||||||
'inline' => [
|
'inline' => [
|
||||||
[
|
[
|
||||||
'filename' => 'monpasklein.png',
|
'filename' => 'monpasklein.png',
|
||||||
'filePath' => '@css/images/']
|
'filePath' => FCPATH . 'css/images/']
|
||||||
]
|
]
|
||||||
] );
|
] );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user