forked from verdnatura/hedera-web
PHPMailer fixes
This commit is contained in:
parent
d4fae5b077
commit
54dd5a21cf
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.407.02) stable; urgency=low
|
||||
hedera-web (1.407.03) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.407.02",
|
||||
"version": "1.407.03",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
require_once('libphp-phpmailer/autoload.php');
|
||||
|
||||
use Vn\Lib;
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
|
||||
class Contact extends Vn\Web\JsonRequest {
|
||||
const PARAMS = [
|
||||
|
@ -35,7 +34,7 @@ class Contact extends Vn\Web\JsonRequest {
|
|||
FROM mailConfig m JOIN contact c'
|
||||
);
|
||||
|
||||
$mail = new PHPMailer();
|
||||
$mail = new \PHPMailer();
|
||||
$mail->isSMTP();
|
||||
$mail->Host = $conf->host;
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
require_once('libphp-phpmailer/autoload.php');
|
||||
|
||||
class Mail extends Vn\Lib\Method {
|
||||
function run($db) {
|
||||
$db->query('START TRANSACTION');
|
||||
|
@ -10,7 +8,7 @@ class Mail extends Vn\Lib\Method {
|
|||
$res = $db->query(
|
||||
'SELECT * FROM vn.mail WHERE `sent` = 0
|
||||
ORDER BY creationDate
|
||||
LIMIT 20
|
||||
LIMIT 50
|
||||
FOR UPDATE'
|
||||
);
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ namespace Vn\Web;
|
|||
require_once 'libphp-phpmailer/autoload.php';
|
||||
|
||||
use Vn\Lib\UserException;
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
|
||||
class Mailer {
|
||||
private $conf;
|
||||
|
@ -20,7 +19,7 @@ class Mailer {
|
|||
function createObject($mailTo, $body, $subject) {
|
||||
$conf = $this->conf;
|
||||
|
||||
$mail = new PHPMailer();
|
||||
$mail = new \PHPMailer();
|
||||
$mail->isSMTP();
|
||||
$mail->Host = $conf->host;
|
||||
|
||||
|
|
Loading…
Reference in New Issue