-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inlining images #22
Comments
Hi, |
As far as i understand Nodemailer replaces the <img style="vertical-align: top; display: block;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAPFBMVEX///+1tbWwsLCtra3////5+fmLi4vZ2dnT09P8/PzPz8+rq6uhoaHR0dFycnJwcHB6enp4eHiDg4OAgIBog/vRAAAADnRSTlMAIiJV3e7u7u7u7u7u7rDOyYEAAABUSURBVHhepcpLDoAwCABRqkBbP9Dq/e9qLYS1ibN8GQBYWFVGfQWLWyFEJG0uknGmuz+CDnjYEzDqDpF8BrV+HBRHNThjyBP42qpBufmFxOIpJ3gAPTUGaYiilrsAAAAASUVORK5CYII=" alt="page icon" title="page icon" height="16" width="16" border="0"> At least in the cases where there's a message part with that referenced |
I'll leave this open as an enhancement. In the meantime you could perform a regex replace like the JS library is doing and replace it with a link to the local filesystem or a URL. |
Perfect, thank you! |
First of all, thanks a lot for this library and the great amount of work that went into it🙏🏻
As far as i can tell images that are appended as inline attachments are not automatically inlined in the resulting body HTML string.
For example, this element is in an email by Confluence:
This references an attachment,
page-icon
, byContent-ID
which is appended later in the email body:Now when i get the HTML body of the email like this:
...the image source still says
cid:page-icon
. Is there a way to automatically inline those attachments? Or is this something that should be handled by the user?Other libraries, such as the Nodemailer mailparser do this automatically.
The text was updated successfully, but these errors were encountered: