Skip to content

Commit fb42a37

Browse files
author
Marius Burkard
committed
- patch for mail lib improvement from previous commits
1 parent 0316d01 commit fb42a37

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

install/sql/incremental/upd_dev_collection.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ CREATE TABLE IF NOT EXISTS `addons` (
154154

155155
CREATE TABLE IF NOT EXISTS `sys_mailqueue` (
156156
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
157-
`from` varchar(255) NOT NULL DEFAULT '',
157+
`from_address` varchar(255) NOT NULL DEFAULT '',
158158
`recipients` text NOT NULL,
159159
`mail_content` mediumblob NOT NULL,
160160
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,

install/sql/ispconfig3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ CREATE TABLE `sys_log` (
15911591

15921592
CREATE TABLE IF NOT EXISTS `sys_mailqueue` (
15931593
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
1594-
`from` varchar(255) NOT NULL DEFAULT '',
1594+
`from_address` varchar(255) NOT NULL DEFAULT '',
15951595
`recipients` text NOT NULL,
15961596
`mail_content` mediumblob NOT NULL,
15971597
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,

interface/lib/classes/ispcmail.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ public function send_queue() {
866866
// Send mail:
867867

868868
$id = $mail['id'];
869-
$from = $mail['from'];
869+
$from = $mail['from_address'];
870870
$recipients = explode("\n", $mail['recipients']);
871871
$mail_content = $mail['mail_content'];
872872

@@ -914,7 +914,7 @@ private function send_smtp($from, $recipients, $mail_content) {
914914
*/
915915
private function add_to_queue($from, $recipients, $mail_content) {
916916
global $app;
917-
$app->db->query('INSERT INTO `sys_mailqueue` (`from`, `recipients`, `mail_content`) VALUES (?,?,?)', $from, implode("\n", $recipients), $mail_content);
917+
$app->db->query('INSERT INTO `sys_mailqueue` (`from_address`, `recipients`, `mail_content`) VALUES (?,?,?)', $from, implode("\n", $recipients), $mail_content);
918918
}
919919

920920
/**

server/lib/classes/ispcmail.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ public function send_queue() {
862862
// Send mail:
863863

864864
$id = $mail['id'];
865-
$from = $mail['from'];
865+
$from = $mail['from_address'];
866866
$recipients = explode("\n", $mail['recipients']);
867867
$mail_content = $mail['mail_content'];
868868

@@ -910,7 +910,7 @@ private function send_smtp($from, $recipients, $mail_content) {
910910
*/
911911
private function add_to_queue($from, $recipients, $mail_content) {
912912
global $app;
913-
$app->db->query('INSERT INTO `sys_mailqueue` (`from`, `recipients`, `mail_content`) VALUES (?,?,?)', $from, implode("\n", $recipients), $mail_content);
913+
$app->db->query('INSERT INTO `sys_mailqueue` (`from_address`, `recipients`, `mail_content`) VALUES (?,?,?)', $from, implode("\n", $recipients), $mail_content);
914914
}
915915

916916
/**

0 commit comments

Comments
 (0)