Send plain text/HTML with Postmark

This commit is contained in:
Hillel Coren 2017-07-04 23:57:16 +03:00
parent 2c77af532f
commit 774e6854d0

View File

@ -29,6 +29,7 @@ class Mailer
return true;
}
/*
if (isset($_ENV['POSTMARK_API_TOKEN'])) {
$views = 'emails.'.$view.'_html';
} else {
@ -37,6 +38,12 @@ class Mailer
'emails.'.$view.'_text',
];
}
*/
$views = [
'emails.'.$view.'_html',
'emails.'.$view.'_text',
];
try {
$response = Mail::send($views, $data, function ($message) use ($toEmail, $fromEmail, $fromName, $subject, $data) {