Email notification is not showing image preview or logo

Hi there

Logo and imgages preview is not shown in notification email. see attached screenshot.

any idea anyone ?

Thanks, Frank

Unfortunately you didn’t follow the basic posting rules by providing OS and version information.
Afaik, Nextcloud v15.0.5 is definitely not posting these images anymore. Therefore I would
recommend to update your installation to the latest version.

Sorry, my mistake. I´m using NC 15.0.5 and this installation is running under Ubuntu 18.04 LTS.
Just checked today and I´m still receiving notification emails without the images preview.

As I wrote, I cannot see any previews or a logo in the email header of an email when I create a file.

What kind of email client are you using?
Do you use any kind of ad or privacy blocker?
Can you find out what kind of link is shown for the previews?
Are these external links or should they refer to an attached/included picture?

Outlook 2016. I just saw that the preview in the activity screen within the nextcloud gui is also broken, maybe that is a hint ?

In this case you should check how the url looks like which should refer to the missing preview. Usually the url is being displayed if you hover over it. It might be possible that your configuration need to be a modified, but without the required information it is difficult to give you more hints.

Hi, there Thanks for your patience. I think I found the issue. It is a rewrite/URL thing that need to be changed.
Thanks for giving me that hint.

1 Like

I have the same problem, how did you solve it?
Thanks

Still same problem with nextcloud version 19

Same problem.
I think the bug is in the config.php:
'overwrite.cli.url' => 'http://localhost',

If I change the “localhost” with the url of the Nextcloud’s installation, is safe or creates some configuration problems?

2 Likes

Using the host name “localhost” is only recommended if you want to access a service, which is running on the same server, where no external access is required. In the given example you want to use the Nextcloud GUI from an external client, which would resolve “localhost” to his own client hardware and not the server on which Nextcloud is running. Using the external DNS name is therefore strongly recommended.

1 Like

To fix this issue, for all my Nextcloud installations I’ve changed the “localhost” in the “overwrite.cli.url” with the full url (e.g. “https://mydomain/nextcloud/”) as reported in the documentation.

3 Likes

even with a default url of the instance like images of my email signature are not displayed in“overwrite.cli.url”

I changed the “overwrite.cli.url” to my domain and restarted the plugin. The image still does not show.
====================fixed for my case ====
For my case, I used nginx as proxy reserve to the nextcloud

so I need to add
location /{
proxy_pass http://xxx.xxx.xxx.xxx:xxxx; ← your ip and port
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

Also, update the config.php
add trusted_proxies and overwrite.cli.url to my domain
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/reverse_proxy_configuration.html