BUG 10152 "PMFSendMessage() should have an option for..." SOLVED
- PMFSendMessage function can't be set for send mail with format text plain
- Fixed, PMFSendMessage now use the extension of the template for get the
format of the mail, example:
> path_to_template/MyTemplate.html
the extension is html, then use text/html content type for the mail
> path_to_template/MyTemplate.txt
the extension is txt, then use text/plain content type for the mail
> If the extension is different to html/htm, then used text/plain in all cases
* Available from version ProcessMaker-2.0.46
This commit is contained in:
@@ -747,7 +747,7 @@ class wsBase
|
||||
$delIndex = 0
|
||||
) {
|
||||
try {
|
||||
G::loadClass( 'system' );
|
||||
G::LoadClass("system");
|
||||
|
||||
$aSetup = System::getEmailConfiguration();
|
||||
|
||||
@@ -816,7 +816,8 @@ class wsBase
|
||||
"app_msg_attach" => $aAttachment,
|
||||
"app_msg_template" => "",
|
||||
"app_msg_status" => "pending",
|
||||
"app_msg_show_message" => $showMessage
|
||||
"app_msg_show_message" => $showMessage,
|
||||
"contentTypeIsHtml" => (preg_match("/^.+\.html?$/i", $fileTemplate))? true : false
|
||||
);
|
||||
|
||||
$oSpool->create( $messageArray );
|
||||
|
||||
Reference in New Issue
Block a user