BUG 0000 Attachments to email messages
this feature is properly documented
This commit is contained in:
@@ -768,16 +768,17 @@ function getEmailConfiguration () {
|
||||
* @param string(32) | $sBcc | Email addres for copies hidden | The email address(es) of people who will receive blind carbon copies of the email.
|
||||
* @param string(32) | $sSubject | Subject of the email | The subject (title) of the email.
|
||||
* @param string(32) | $sTemplate | Name of the template | The name of the template file in plain text or HTML format which will produce the body of the email.
|
||||
* @param array | $aFields | An associative array optional | Optional parameter. An associative array where the keys are the variable name and the values are the variable's value.
|
||||
* @param array | $aFields | An optional associative array | Optional parameter. An associative array where the keys are the variable names and the values are the variables' values.
|
||||
* @param array | $aAttachment | An optional array | Optional parameter. An array of files (full paths) to be attached to the email.
|
||||
* @return int | $result | result | Result of sending email
|
||||
*
|
||||
*/
|
||||
//@param array | $aFields=array() | An associative array optional | Optional parameter. An associative array where the keys are the variable name and the values are the variable's value.
|
||||
function PMFSendMessage($caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTemplate, $aFields = array(), $sAttachment = array()) {
|
||||
function PMFSendMessage($caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTemplate, $aFields = array(), $aAttachment = array()) {
|
||||
|
||||
G::LoadClass('wsBase');
|
||||
$ws = new wsBase ();
|
||||
$result = $ws->sendMessage($caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTemplate, $aFields, $sAttachment);
|
||||
$result = $ws->sendMessage($caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTemplate, $aFields, $aAttachment);
|
||||
|
||||
if ( $result->status_code == 0) {
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user