* mailModel: get key-value pairs of image URL and physical file in mail content and replace image url with them.

This commit is contained in:
liugang
2024-05-30 16:54:07 +08:00
committed by caoyanyi
parent 5cf3e5e675
commit 33ea4c77d6
+3 -1
View File
@@ -244,7 +244,9 @@ class mailModel extends model
ob_start();
$body = $this->mailTao->replaceImageURL($body);
$images = $this->mailTao->getImages($body);
if($images) $body = $this->mailTao->replaceImageURL($body, $images);
list($toList, $ccList) = $this->mailTao->processToAndCC($toList, $ccList, $includeMe);
/* Get realname and email of users. */
if(empty($emails)) $emails = $this->loadModel('user')->getRealNameAndEmails($toList . ',' . $ccList);