# Images not showing gmail

**URL:** <https://forum.mautic.org/t/images-not-showing-gmail/31497>\
**Category:** Product Support\
**Created:** [March 31, 2024, 7:04am UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497 "2024-03-31T07:04:32Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asme](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Asme](https://forum.mautic.org/u/Asme)\
**Post date:** [March 31, 2024, 7:04am UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/1 "2024-03-31T07:04:32Z")

</div>

**Your software**  
My Mautic version is: 5  
My PHP version is: 8.1  
My Database type and version is:

**Your problem**  
My problem is:

When I send test email, images doesn’t show up in Gmail but show up in Hotmail and in [contact@mysite.com](mailto:contact@mysite.com)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [April 1, 2024, 4:00am UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/2 "2024-04-01T04:00:29Z")

</div>

Does the email land in your inbox?  
Maybe you have to enable downloading images, don’t you see a yellow bar in gmail ‘enable downloading images’ or similar?  
Do you use SSL in your Mautic, is it https?

---

<div class="post-metadata">

**Author:** ![Asme](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Asme](https://forum.mautic.org/u/Asme)\
**Post date:** [April 1, 2024, 2:30pm UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/3 "2024-04-01T14:30:22Z")

</div>

Yes, I tried to send an email to a [gmail.com](http://gmail.com), [outlook.com](http://outlook.com) and [tomysite.com](http://tomysite.com).  
They all receive the message but on gmail the images doesn’t show up.

It does show up on outlook and to any email of mystic as well.  
And yes, https is enabled.

 ![Screenshot 2024-04-01 at 14.28.44](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3d3c0fd98ef22234dc51116e309d671f663e2397.png)

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 1, 2024, 4:19pm UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/4 "2024-04-01T16:19:11Z")

</div>

Please check you browser console (“Dev Tools”). This will show the error for the images not loading.

---

<div class="post-metadata">

**Author:** ![Asme](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Asme](https://forum.mautic.org/u/Asme)\
**Post date:** [April 1, 2024, 5:33pm UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/6 "2024-04-01T17:33:10Z")

</div>

It shows 404 errors for each image:

![mautic_gmail_image_not_found](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e157dcae5ea7e450c6f4dd7a0c6df1554e449bb8.jpeg)

The image URL is like:

[https://ci3.googleusercontent.com/meips/ADKq\_NaP5hSXZYF63m8oagAFcClkKHR5xYS-Ho0J4tXstffphX3LhMWV55vk58lOXEx20J79BilQE5XrUZN9TU14T-0wJO484a561tXEUjuEkT1ShWl0IPKuaZsOIXc0QSagi0VKkQ=s0-d-e1-ft#https://mautic.mysite.com/themes/paprika/assets/paprikas.jpg?vaeab0959](https://ci3.googleusercontent.com/meips/ADKq_NaP5hSXZYF63m8oagAFcClkKHR5xYS-Ho0J4tXstffphX3LhMWV55vk58lOXEx20J79BilQE5XrUZN9TU14T-0wJO484a561tXEUjuEkT1ShWl0IPKuaZsOIXc0QSagi0VKkQ=s0-d-e1-ft#https://mautic.mysite.com/themes/paprika/assets/paprikas.jpg?vaeab0959)

the last part of a image url is like [https://mautic.mysite.com/themes/paprika/assets/paprikas.jpg?vaeab0959](https://mautic.mysite.com/themes/paprika/assets/paprikas.jpg?vaeab0959) which show the actual image when open in a new tab.

---

<div class="post-metadata">

**Author:** ![Asme](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Asme](https://forum.mautic.org/u/Asme)\
**Post date:** [April 1, 2024, 5:44pm UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/7 "2024-04-01T17:44:48Z")

</div>

Another thing I notice is that the mautic logo is displayed but my avatar is not (I haven’t set one yet as I don’t know how to change it but I guess there should be a default one)

 ![mautic_avatar_image_not_found](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a662383d570251ded32412451efcea6e9dba51d5.jpeg)

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 7, 2024, 7:45am UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/8 "2024-04-07T07:45:35Z")

</div>

This seems to indicate, that Google is not able to load your image - while you can load it locally. Do you block Google on your server maybe? Not sure if thats relevant for secure loading of mail assets.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 7, 2024, 7:48am UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/9 "2024-04-07T07:48:39Z")

</div>

This resource is loading locally via your browser. So differently to the Google Proxy loading of your images. Is your local browser blocking certain resources? Do you use anti tracking plugins?

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [April 7, 2024, 11:31am UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/10 "2024-04-07T11:31:00Z")

</div>

This could be related with a DNS misconfiguration where it loads fine on your network but remote can’t.

This does happen when using a dedicated DNS zone for a subdomain but not declaring it in the SLD zone.

Check your DNS propagation using a third party tool like [https://dnschecker.org/](https://dnschecker.org/)

If your subdomain isn’t green all over the board, you have a DNS issue and check what I just said (missing nameservers for your subdomain zone).

---

<div class="post-metadata">

**Author:** ![Asme](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Asme](https://forum.mautic.org/u/Asme)\
**Post date:** [April 8, 2024, 2:42am UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/11 "2024-04-08T02:42:10Z")

</div>

Hello,  
I fixed it after changing the Nginx Configuration file.  
Now images display correctly in Gmail.  
Also even the avatar in the dashboard is displayed correctly (didn’t mention it but was missing as well).

---

<div class="post-metadata">

**Author:** ![jakobpersson](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jakobpersson](https://forum.mautic.org/u/jakobpersson)\
**Post date:** [April 8, 2024, 8:06pm UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/12 "2024-04-08T20:06:12Z")

</div>

What did you change in the Nginx configuration?

I think I’m having the same problem.

---

<div class="post-metadata">

**Author:** ![Asme](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Asme](https://forum.mautic.org/u/Asme)\
**Post date:** [April 8, 2024, 8:44pm UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/13 "2024-04-08T20:44:51Z")

</div>

This is my new Nginx config.  
Note, the last part are generated by Cerbot for HTTPS support.

```auto
server {
   server_name mautic.mysite.com;

   root /var/www/mautic/docroot;

   error_log /var/log/nginx/mautic.error;
   access_log /var/log/nginx/mautic.access;
   client_max_body_size 20M;

   index index.php index.html index.htm index.nginx-debian.html;

   location / {
     # try to serve file directly, fallback to app.php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
     try_files $uri /index.php$is_args$args;
   }

   location ~ /(mtc.js|1.js|mtracking.gif|.*\.gif|mtc) {
       # default_type "application/javascript";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
       try_files $uri /index.php$is_args$args;
   }

   # redirect some entire folders                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
     rewrite ^/(vendor|translations|build)/.* /index.php break;

   location ~ \.php$ {
     include snippets/fastcgi-php.conf;
     fastcgi_pass unix:/run/php/php8.1-fpm.sock;
     #Note: If you install Mautic on iRedMail server, you should use the TCP socket instead.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
     #fascgi_pass 127.0.0.1:9999                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
   }

   location ~* ^/index.php {
     # try_files $uri =404;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
     fastcgi_split_path_info ^(.+\.php)(/.+)$;
     # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

     fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
     #Note: If you install Mautic on iRedMail server, you should use the TCP socket instead.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
     #fascgi_pass 127.0.0.1:9999                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
     fastcgi_index index.php;
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     include fastcgi_params;

     fastcgi_buffer_size 128k;
     fastcgi_buffers 256 16k;
     fastcgi_busy_buffers_size 256k;
     fastcgi_temp_file_write_size 256k;
   }

    # Deny everything else in /app folder except Assets folder in bundles                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    location ~ /app/bundles/.*/Assets/ {
        allow all;
        access_log off;
    }
    location ~ /app/ { deny all; }

    # Deny everything else in /addons or /plugins folder except Assets folder in bundles                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    location ~ /(addons|plugins)/.*/Assets/ {
        allow all;
        access_log off;
    }
    # location ~ /(addons|plugins)/ { deny all; }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

    # Deny all php files in themes folder                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
      location ~* ^/themes/(.*)\.php {
        deny all;
    }

    # Don't log favicon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    # Don't log robots                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    location = /robots.txt {
        access_log off;
        log_not_found off;
    }

    # Deny yml, twig, markdown, init file access                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ {
        deny all;
        access_log off;
        log_not_found off;
    }

     # Allow access to certbot directory in order to obtain TLS certificate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
     location ~ /.well-known/acme-challenge {
        allow all;
     }
    # Deny all attempts to access hidden files/folders such as .htaccess, .htpasswd, .DS_Store (Mac), etc...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
    location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }

    # Deny all grunt, composer files                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
    location ~* (Gruntfile|package|composer)\.(js|json)$ {
        deny all;
        access_log off;
        log_not_found off;
    }

    # Deny access to any files with a .php extension in the uploads directory                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
        location ~* /(?:uploads|files)/.*\.php$ {
                deny all;
    }

     # A long browser cache lifetime can speed up repeat visits to your page                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
  location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$ {
       access_log off;
       log_not_found off;
       expires 360d;
  }

## THIS PART IS GENERATED BY CERTBOT FOR HTTPS SUPPORT

    listen [::]:443 ssl ipv6only=on; # managed by Certbot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    listen 443 ssl; # managed by Certbot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    ssl_certificate /etc/letsencrypt/live/mautic.mysite.com/fullchain.pem; # managed by Certbot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    ssl_certificate_key /etc/letsencrypt/live/mautic.mysite.com/privkey.pem; # managed by Certbot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

}server {
    if ($host = mautic.mysite.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

   listen 80;
   listen [::]:80;
   server_name mautic.mysite.com;
    return 404; # managed by Certbot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

```

---

<div class="post-metadata">

**Author:** ![jakobpersson](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jakobpersson](https://forum.mautic.org/u/jakobpersson)\
**Post date:** [April 9, 2024, 8:22am UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/14 "2024-04-09T08:22:31Z")

</div>

Thank you! I can compare this to what I use.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [April 10, 2024, 8:22pm UTC](https://forum.mautic.org/t/images-not-showing-gmail/31497/15 "2024-04-10T20:22:50Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
