You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<img src="C:\Users\FRANTA\projects\Project-X\temp\content\con33C8.svg"> converted to <img src="cid:xyyrj49su6@localhost">
Possible Solution
Modify regex in Message::setHtmlBody()
Patter <img[^<>]*\s src\s*=\s* will not catch path contains colons : or spaces .
For images in different folders i can not use param $basePath
Example of used images in html body: C:\Users\FRANTA\projects\Project-X\temp\content\con33C8.svg C:\Users\FRANTA\projects\Project-X\app\some folders with spaces\xxxx.jpg ./another folder in root/sub folder/yyyy.png
The text was updated successfully, but these errors were encountered:
Version: 3.1
Bug Description
Embed files (images)
<img src=".....>
are not matched/replaced correctly inMessage::setHtmlBody()
.Steps To Reproduce
will produce:
instead of
Expected Behavior
<img src="C:\Users\FRANTA\projects\Project-X\temp\content\con33C8.svg">
converted to<img src="cid:xyyrj49su6@localhost">
Possible Solution
Modify regex in
.
Message::setHtmlBody()
Patter
<img[^<>]*\s src\s*=\s*
will not catch path contains colons:
or spacesFor images in different folders i can not use param
$basePath
Example of used images in html body:
C:\Users\FRANTA\projects\Project-X\temp\content\con33C8.svg
C:\Users\FRANTA\projects\Project-X\app\some folders with spaces\xxxx.jpg
./another folder in root/sub folder/yyyy.png
The text was updated successfully, but these errors were encountered: