Bug Fixes
- Fixed loging method in CommonmailController - Fixed mail config file - Fixed attachment variable initalization in MailController - Fixed sendEmail() method in PhpMailController passing empty array as default value for $template_variables - Fixed Bugsnag reported issue for sendmail() which is happening for reports
This commit is contained in:
committed by
Manish Verma
parent
426a285431
commit
e9650156bb
@@ -26,7 +26,7 @@ class CommonMailer
|
||||
|
||||
return true;
|
||||
} catch (Exception $e) {
|
||||
loging($e->getMessage());
|
||||
loging('mail-config', $e->getMessage());
|
||||
|
||||
return $e->getMessage();
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class PhpMailController extends Controller
|
||||
$this->dispatch($job);
|
||||
}
|
||||
|
||||
public function sendEmail($from, $to, $message, $template_variables)
|
||||
public function sendEmail($from, $to, $message, $template_variables = [])
|
||||
{
|
||||
$from_address = $this->fetch_smtp_details($from);
|
||||
if ($from_address == null) {
|
||||
|
||||
Reference in New Issue
Block a user