Mailer bugs solved

This commit is contained in:
Juan Ferrer Toribio 2017-11-29 13:55:51 +01:00
parent 883e5e0dcc
commit 5c05a2ef50
3 changed files with 4 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.405.23) stable; urgency=low hedera-web (1.405.24) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "1.405.23", "version": "1.405.24",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {

View File

@ -23,7 +23,7 @@ class Mail extends Vn\Lib\Method
try { try {
$mail = $mailer->createObject ($row->to, $row->text, $row->subject); $mail = $mailer->createObject ($row->to, $row->text, $row->subject);
$mail->AddReplyTo ($row->reply_to, $conf->sender_name); $mail->AddReplyTo ($row->reply_to, $row->reply_to);
if (!empty ($row->path)) if (!empty ($row->path))
{ {
@ -47,7 +47,7 @@ class Mail extends Vn\Lib\Method
} }
$db->query ('UPDATE mail SET sent = #, error = # WHERE id = #', $db->query ('UPDATE mail SET sent = #, error = # WHERE id = #',
[$sent, $status, $row['id']]); [$sent, $status, $row->id]);
} }
$db->query ('COMMIT'); $db->query ('COMMIT');