• Resolved ecomsolutions

    (@ecomsolutions)


    Hi,

    We’re trying to create an email for newly registered users, that contains an image. We tried both adding an image from the media library, and encoding it in base64, but neither seems to work. In the first case it shows up in the email as a broken image, in the second case it doesn’t appear at all, just an empty email.

    With base 64 after saving the template it changes the code, the beginning of src in img tag changes from “data:image/png;base64” to “image/png;base64”, I’m guessing that’s why it doesn’t work.

    The email is set as HTML formatting, not plain text.

    Is it just not possible to send images, or are we missing something?

    Thank you in advance for you answer.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @ecomsolutions,
    Thanks for your message.

    Images should work in notifications, unless it’s an image that can only handle plain text. The WYSIWYG editor has been known to strip some HTML upon save as this is for security purposes. This is imposed by WordPress and not BNFW though.

    I’d recommend using a regular <img src=””> tag with a URL though, instead of a base64 encoded image to avoid this.

    If the image fails to load when the email arrives in your inbox, this could be because:

    1. Images are preventing from being loading by default in your email/web client.
    2. The site is in a private or maintenance mode and so the images can’t be viewed unless you are logged in to the site directly.
    3. The URL for the image isn’t correct. You should be able to view the URL of the image in the email/web client though in order to troubleshoot this.

    Do any of these sound like they could be the issue?

    Thread Starter ecomsolutions

    (@ecomsolutions)

    Hi,

    Your second guess sent me on the right track, the image link started with https, but on our testing website we don’t have an SSL certificate. When I changed the link to an image from our production website it worked.

    Thank you very much for your help.

    Plugin Author bnfw

    (@voltronik)

    Hi @ecomsolutions,
    Not a problem – glad you got it working ??

    If you like BNFW and the support, please feel free to leave an honest review.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images don’t show in emails’ is closed to new replies.