mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Send plain text/HTML with Postmark
This commit is contained in:
parent
2c77af532f
commit
774e6854d0
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user