* 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-29 16:39:31 +08:00
parent 210a3e06df
commit 6eddb3d64c
+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);