BUG 10103 PMFSendMessage with attachments SOLVED
- Not checked the chain to create a record. - Was add verification.
This commit is contained in:
@@ -138,6 +138,10 @@ class spoolRun
|
|||||||
*/
|
*/
|
||||||
public function create ($aData)
|
public function create ($aData)
|
||||||
{
|
{
|
||||||
|
if (is_array($aData['app_msg_attach'])) {
|
||||||
|
$attachment = implode(",", $aData['app_msg_attach']);
|
||||||
|
$aData['app_msg_attach'] = $attachment;
|
||||||
|
}
|
||||||
$aData['app_msg_show_message'] = (isset($aData['app_msg_show_message'])) ? $aData['app_msg_show_message'] : 1;
|
$aData['app_msg_show_message'] = (isset($aData['app_msg_show_message'])) ? $aData['app_msg_show_message'] : 1;
|
||||||
$sUID = $this->db_insert( $aData );
|
$sUID = $this->db_insert( $aData );
|
||||||
|
|
||||||
@@ -300,7 +304,7 @@ class spoolRun
|
|||||||
$this->fileData['envelope_to'][] = "$val";
|
$this->fileData['envelope_to'][] = "$val";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ($text != '') {
|
} elseif ($text != '') {
|
||||||
$this->fileData['envelope_to'][] = "$text";
|
$this->fileData['envelope_to'][] = "$text";
|
||||||
} else {
|
} else {
|
||||||
$this->fileData['envelope_to'] = Array ();
|
$this->fileData['envelope_to'] = Array ();
|
||||||
@@ -315,7 +319,7 @@ class spoolRun
|
|||||||
$this->fileData['envelope_cc'][] = "$valcc";
|
$this->fileData['envelope_cc'][] = "$valcc";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ($textcc != '') {
|
} elseif ($textcc != '') {
|
||||||
$this->fileData['envelope_cc'][] = "$textcc";
|
$this->fileData['envelope_cc'][] = "$textcc";
|
||||||
} else {
|
} else {
|
||||||
$this->fileData['envelope_cc'] = Array ();
|
$this->fileData['envelope_cc'] = Array ();
|
||||||
@@ -330,7 +334,7 @@ class spoolRun
|
|||||||
$this->fileData['envelope_bcc'][] = "$valbcc";
|
$this->fileData['envelope_bcc'][] = "$valbcc";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ($textbcc != '') {
|
} elseif ($textbcc != '') {
|
||||||
$this->fileData['envelope_bcc'][] = "$textbcc";
|
$this->fileData['envelope_bcc'][] = "$textbcc";
|
||||||
} else {
|
} else {
|
||||||
$this->fileData['envelope_bcc'] = Array ();
|
$this->fileData['envelope_bcc'] = Array ();
|
||||||
@@ -542,10 +546,10 @@ class spoolRun
|
|||||||
|
|
||||||
if ($aConfiguration["MESS_ENABLED"] == "1") {
|
if ($aConfiguration["MESS_ENABLED"] == "1") {
|
||||||
require_once ("classes/model/AppMessage.php");
|
require_once ("classes/model/AppMessage.php");
|
||||||
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
||||||
$aConfiguration['MESS_RAUTH'] = 0;
|
$aConfiguration['MESS_RAUTH'] = 0;
|
||||||
} else {
|
} else {
|
||||||
$aConfiguration['MESS_RAUTH'] = 1;
|
$aConfiguration['MESS_RAUTH'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setConfig( array ("MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],"MESS_SERVER" => $aConfiguration["MESS_SERVER"],"MESS_PORT" => $aConfiguration["MESS_PORT"],"MESS_ACCOUNT" => $aConfiguration["MESS_ACCOUNT"],"MESS_PASSWORD" => $aConfiguration["MESS_PASSWORD"],"SMTPAuth" => $aConfiguration["MESS_RAUTH"],"SMTPSecure" => $aConfiguration["SMTPSecure"]
|
$this->setConfig( array ("MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],"MESS_SERVER" => $aConfiguration["MESS_SERVER"],"MESS_PORT" => $aConfiguration["MESS_PORT"],"MESS_ACCOUNT" => $aConfiguration["MESS_ACCOUNT"],"MESS_PASSWORD" => $aConfiguration["MESS_PASSWORD"],"SMTPAuth" => $aConfiguration["MESS_RAUTH"],"SMTPSecure" => $aConfiguration["SMTPSecure"]
|
||||||
|
|||||||
Reference in New Issue
Block a user