eladnava/mailgen

When i put an svg in logo, nor the logo neither the name is shown.

danielCommitted opened this issue · 4 comments

When i put an svg in logo, nor the logo neither the name is shown.

Hi @danielCommitted,
Thanks so much for taking the time to report this bug.

Can you please post example code (i.e. the constructor code that you use to initialize Mailgen with an SVG logo?)

new Mailgen({ theme: 'default', textDirection: 'ltr', product: { // Appears in header & footer of e-mails name: {name}, link: {link}, logo: 'https://daks2k3a4ib2z.cloudfront.net/5661f2003837fdb102819aa7/596e100d68dd86705eb704d7_CLOUDWITHME_LOGO.svg', copyright: {copyright} } });

Hi @danielCommitted,
Upon inserting the svg link in the logo option of examples/welcome.js, the following was generated:

screen shot 2017-12-09 at 6 46 56 pm

When using the logo option, mails will no longer contain the name in headers, but only in footers within the copyright.

Is it possible that the svg logo isn't being displayed in Gmail for example but you can see it fine if you open the generated HTML in Chrome?

E-mail interfaces such as Gmail might be filtering out SVG files for security purposes.

Closing due to lack of response, feel free to reopen if you still need help with this.