i have application to send email. library used swift mailer. i have generated html string for sending email which contains various tag including tag can i convert that img src tag to bas64 image
for ex
<html>
some txt+html ...
<img src="some-path/image.jpg">
some text+html ..
</html>
to
<html>
some txt+html ...
<img src="data:image/jpg;base64, $base64_code_of_image.jpg ">
some text+html ..
</html>