emailjs icon indicating copy to clipboard operation
emailjs copied to clipboard

send an email with an embeded image, the email not display image in Huawei mobile's email client

Open Yonysun opened this issue 4 years ago • 8 comments

send an email with an embeded image, the email not display image in Huawei mobile's email client

Yonysun avatar Jul 05 '20 18:07 Yonysun

can you share the (redacted if necessary) message you're trying to send, as well as a code snippet demonstrating how you're using the library?

it might also be useful to run the library with debug mode on (call client.smtp.debug(1) prior to sending the message) and seeing if there are any errors or abnormalities that pop out.

zackschuster avatar Jul 05 '20 23:07 zackschuster

2.txt this is my test scripts, thank you very much.

Yonysun avatar Jul 06 '20 13:07 Yonysun

the email can be sent to target account, but the embeded image not display normally

Yonysun avatar Jul 06 '20 13:07 Yonysun

unfortunately i'm not (currently) familiar with how cid images are supposed to be inlined.

@eleith would you be able to advise?

zackschuster avatar Jul 06 '20 22:07 zackschuster

cid image support isn't guaranteed in all email clients (though in practice, i've seen support for it in many of them)

https://sendgrid.com/blog/embedding-images-emails-facts/

the thing to check is that emailjs is producing the intended source (my guess it is, since i used this when sending to gmail a few months ago).

rfc for CID is here: https://tools.ietf.org/html/rfc2392

some clients do support it, but deviate from the spec a bit.

eleith avatar Jul 10 '20 05:07 eleith

@Yonysun can you verify the library is sending the email correctly? are there any issues we need to address?

zackschuster avatar Jul 13 '20 17:07 zackschuster

@Yonysun can you verify the library is sending the email correctly? are there any issues we need to address?

yes, I'm sure, and my Huawei mobile phone received the email successfully.

BTW: Huawei mobilePhone's email client can show email image sent from outlook client

Yonysun avatar Jul 22 '20 08:07 Yonysun

i don't have access to an outlook client to inspect how it embeds images. it would be helpful to compare emailjs output to that of outlook to see if the implementations differ and how.

eleith avatar Jul 25 '20 20:07 eleith

not enough info to reproduce

eleith avatar May 12 '23 22:05 eleith