-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSendUnsent.php
More file actions
29 lines (22 loc) · 943 Bytes
/
SendUnsent.php
File metadata and controls
29 lines (22 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
/**
* This file is part of the Mailer for AbraFlexi package
*
* https://github.com/VitexSoftware/abraflexi-mailer
*
* (c) Vítězslav Dvořák <http://vitexsoftware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Ease\Shared;
\define('EASE_APPNAME', 'AbraFlexiOdeslatNeodeslane');
require_once '../vendor/autoload.php';
Shared::init(['ABRAFLEXI_URL', 'ABRAFLEXI_LOGIN', 'ABRAFLEXI_PASSWORD', 'ABRAFLEXI_COMPANY', 'MAIL_FROM'], '../.env');
new \Ease\Locale(Shared::cfg('LOCALIZE', 'cs_CZ'), '../i18n', 'abraflexi-mailer');
$invoicer = new \AbraFlexi\FakturaVydana();
if (strtolower(Shared::cfg('APP_DEBUG', 'false')) === 'true') {
$invoicer->logBanner(Shared::appName().' v'.Shared::appVersion());
}
$invoicer->addStatusMessage(_('Send unsent mails'), $invoicer->sendUnsent() ? 'success' : 'warning');