mailhog / MailHog

Web and API based SMTP testing
MIT License
14.15k stars 1.07k forks source link

Embedded image problem #206

Open AndoKarim opened 6 years ago

AndoKarim commented 6 years ago

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. a69dceecc0d92c95c68cec79b9156841

wunderkind2k1 commented 6 years ago

Hi Andro. Do you see this image in the mailhog webui oder in your mail-client?

AndoKarim commented 6 years ago

Hello, I see it in the mailhog webui. I tried with another SMTP server (maildev) and I don't have this problem.

wunderkind2k1 commented 6 years ago

AFAIK know the webui has some trouble with embedded images. https://github.com/mailhog/MailHog/issues/27

tyndyll commented 5 years ago

Can you add the source of the image for testing and reproduction please?

wunderkind2k1 commented 5 years ago

@tyndyll did you try the one from #27 -> https://pastebin.com/KnenaHvR already?

tyndyll commented 5 years ago

Not yet :)

mramos-dev commented 4 years ago

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" Date: Mon, 09 Mar 2020 12:29:34 +0000 From: noreply@meditech.com MIME-Version: 1.0 Message-ID: b211a1a0-c6f6-58b0-f757-51e8ccb58237@meditech.com Received: from [127.0.0.1] by dev-mailhog-684549c47f-rvbv7 (MailHog) id Cohue0EqF4-5G5id45kHDEX44wD1Phw9mY89NSVu7gc=@dev-mailhog-684549c47f-rvbv7; Thu, 27 Feb 2020 23:25:50 +0000 Return-Path: noreply@meditech.com Subject: Test Email To: mramos@meditech.com

----_NmP-61cad9cddc4b2cd8-Part_1 Content-Type: text/plain Content-Transfer-Encoding: 7bit

This is a test email. ----_NmP-61cad9cddc4b2cd8-Part_1 Content-Type: multipart/related; type="text/html"; boundary="--_NmP-61cad9cddc4b2cd8-Part_3"

----_NmP-61cad9cddc4b2cd8-Part_3 Content-Type: text/html Content-Transfer-Encoding: quoted-printable

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 bWFnZVJlYWR5ccllPAAAMHVJREFUeNrs3UtSHMe6AODyDc+vzgpOewVGbMDNkJFh7gg1KxBEMAfm RCCtgFaE5uARQ1obkPEK1HcFV2cF99ZPZ9tIhs7qdz2+L6KiZVP9ys6qyvwr888fCgAAoPN27057 5UNs/XL773LbSX969eTfT30tt4f073j8T7mN4t+f9y+/KlEAVu0HRQA0vMHdX/IlvpYN7YeGfved 1LFYWPndRyv4HIPU6WmtspzOW1JOD6nTuZLfvgbH/iLH/7j87kP1fmHDsvzGW/rtOnXO2NBxFHX4 oNx+Sb/JqxW+fJxv4jzze13ON0u0GcbL1vsatQFq910A5vGjIgAa7n4FDcHDskF327AOfDRe/1jB S63iZsabtndIS+dtK6eyDsXDdBRFbJ+KyeiJpnRuoizPFnhedKaH6v3CovzGW/rtunbOWNex3ysm gauowztrfKudtB2X7xnnmrjOvt/yjaNF2wwXNfxNrxY8B13UuX4C5AhiARTFddnAHjVl6kP5WePO 642fjRV4lTpBsR2n+jUdPfGhqaMUgWevHXGcvy0mAaxtnGsGscX1Np1fhn4VAOYliAUwaVxHUGiv IZ837r72/GysydPRE+Py8X0xmUImvw00UApexci3fk0+UnyOfvm54jOdNG0kNADb9V+KAGDSqC4b 1OcN6IwMisndbNiEXjEJmn6J4yONAgQaIKYNlltMn4utX9Pzy018xjTFEQCyBLEA/naWck3VtkNS TAIKsGkRvIpRE1+aEOyFrkvH6ZeiGXnb+s4tAFQliAXwrZsaj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++m7fTeQUfLxBHyMO/eJ0gZxYtEZaVS/XKDkS wPpbWRZxoc3lidixYiFQE7m76dGQHyqmheSCf726JTyGeaURKnuFRO9d+90fUoqYuHk7XvPb9Z9s mwhgxUjanwSw6BJBLFph9+70vMgPD3+XVufjiTlWLJTYF9ialGC3n9ltaBrFwt5V6NifKSaa7kkg i+799rfl9lMxuYE7avjXibZ7BK/OXffoGkEsGm/37nRQoWE9/Lx/eaK0npdWLMzdwbkqy/pAaQFb UiWAYirhch373HWgv63VumDF9d2Khd3+/YdpZFZswwZ99HExGXn1r1iFsdzGfk26SBCLRksrEeZW momGigBW3lEqq1muU5kDbEwsN17kR9veatAv7aLCPkZj0QppoYJ3SqLTdSBWG4z2779SO7iOU/Km 0+RjxUEjr6AQxKLBdu9Oe8Xs1fWmJ/49q+vlpTI6LGZPJ4myvk+rQAJsyqDCPkZhLd+hG1foxA1S UBHaUOfjJudISXS+HnxNo7OiHfyv1B4eFuvPn/WSqJNxU+F1+Zmmo67UU0h+UAQAAADwrTSFeroi 4S/FZOXu3opefpy2T+nxIU11BWYQxAIAAICKUnCrl/4zAly5EaoRnJrOdngwJRAW9/8CDACQ7YRq chiunAAAAABJRU5ErkJggg== ----_NmP-61cad9cddc4b2cd8-Part_3-- ----_NmP-61cad9cddc4b2cd8-Part_1--
iansebryk commented 4 years ago

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.

cprn commented 3 years ago

@MRamos62786 An example of the correct e-mail structure:

multipart/mixed
├── multipart/related
│   ├── multipart/alternative
│   │   ├── text/plain
│   │   └── text/html
│   └── image/png
└── application/pdf

You can't have related part in alternative part (in your case you can omit mixed node entirely because all your attachments are embedded images but you still must put alternative part in related and not the other way around). Your example doesn't render correctly in bunch of e-mail clients.

Duke482132 commented 3 years ago

@MRamos62786 How have you solved it? I get exactly the same mail structure when using MailMessage in .NET, but I have no control to change this structure.

mramos-dev commented 3 years ago

@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!

cprn commented 3 years ago

@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.

Duke482132 commented 3 years ago

@cprn @MRamos62786 I switched to MimeKit and MailKit and it works like it should with proper structure.