Broken image in email notifications

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • Apache2 - whatever Ubuntu installs
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Apache2
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • no
  • When did this problem seem to first start?
    • always I believe
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Email notifications are missing an image. See screen shot:

I tried using the browser dev console, but couldn’t find the right section of the page to see what was linked. Any ideas how to troubleshoot this?

Hi,

This happens when the image used in email templates (usually the logo or header icon) points to a local path or an internal URL that external mail clients can’t reach.

Here’s how to fix it:

  1. In Nextcloud → Settings → Theming, make sure the logo and email logo are both set and accessible via a public HTTPS URL (for example, URL : // yourdomain DOT com/core/img/logo/logo.png).

  2. In config.php, confirm the following entries exist and match your public domain:

    'overwritehost' => 'yourdomain.com',
    'overwriteprotocol' => 'https',
    
    

    This ensures Nextcloud generates full URLs in emails instead of relative paths.

  3. If you’re using a reverse proxy, make sure it forwards the correct headers:
    Host, X-Forwarded-Proto, and X-Forwarded-For.

  4. After making changes, run occ maintenance:repair and send a test email from Settings → Basic settings → Email server → Send test email.

Once the URLs are correctly generated as absolute links, the images in notification emails will display properly in all mail clients.

Thanks! In my case it was just the config.php settings. I didn’t even see email logo, and all of the items in Theming were uploads, not URLs, but it now works with the config changes. I didn’t have to do the maintenance:repair either.

So, THANKS!

1 Like