-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Embedded image problem #206
Comments
Hi Andro. Do you see this image in the mailhog webui oder in your mail-client? |
Hello, I see it in the mailhog webui. |
AFAIK know the webui has some trouble with embedded images. #27 |
Can you add the source of the image for testing and reproduction please? |
@tyndyll did you try the one from #27 -> https://pastebin.com/KnenaHvR already? |
Not yet :) |
Thanks for all the work on this project! MailHog seems awesome so far! It's too bad this issue has dragged out though I understand how busy contributors get and definitely appreciate all the work you and others do. Another example in case you need it (Let me know if there is something else you expected for reproduction purposes): Content-Type: multipart/alternative; boundary="--_NmP-61cad9cddc4b2cd8-Part_1" ----_NmP-61cad9cddc4b2cd8-Part_1 This is a test email. ----_NmP-61cad9cddc4b2cd8-Part_3 This is a test email. ----_NmP-61cad9cddc4b2cd8-Part_3 Content-Type: image/png; name=attachment-1.png Content-ID: <556SbIy0Qoua67Byxf2yRw==> Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=attachment-1.png iVBORw0KGgoAAAANSUhEUgAABLEAAADxCAYAAAA0qCUrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ ----_NmP-61cad9cddc4b2cd8-Part_1-- |
i am having similar problems, only the image doesn't render in Mailhog at all. i just get the base64 encoded version. i am aware of the browser problems, but my concern is that it doesn't render period. it should also be noted that when i do embed the image, the HTML breaks and all the styling goes out the window. |
@MRamos62786 An example of the correct e-mail structure:
You can't have |
@MRamos62786 How have you solved it? I get exactly the same mail structure when using |
@Duke482132 I have not solved this and this has dropped significantly on my todo list. I'm using nodemailer@6.6.4 and looking at the changelog for that module, it doesn't appear that anything has changed to have resolved this issue. My guess is that nodemailer would need to be updated to create the structure @cprn mentioned, maybe this issue will resolve it. Sorry I can't be more help, Good Luck! |
@Duke482132 What @MRamos62786 said - it's incorrectly generated e-mail content, not a MailHog issue. This issue should be closed. Push the one in nodemailer repo. |
@cprn @MRamos62786 I switched to MimeKit and MailKit and it works like it should with proper structure. |
Hello everyone,
I'm using NodeMailer with Mailhog to test my mail.
The objective is to send an HTML email with embedded image. I used the cid in NodeMailer and put an img tag with that cid.
The image is displayed, no problem, but I see a lot of useless text in the mail as you can see in the screen.
Do you have an idea about the problem ?
When I send something without attachment I don't have it (Only HTML).
Thank you.

The text was updated successfully, but these errors were encountered: