# Server 500 Error on "Emails \> Preview Summary"

**URL:** https://meta.discourse.org/t/server-500-error-on-emails-preview-summary/276181
**Category:** Support
**Created:** [August 22, 2023, 1:18pm UTC](https://meta.discourse.org/t/server-500-error-on-emails-preview-summary/276181 "2023-08-22T13:18:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ben\_Sutton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ben_sutton/32/313156_2.png) [@Ben\_Sutton](https://meta.discourse.org/u/Ben_Sutton)
#### Post date: [August 22, 2023, 1:18pm UTC](https://meta.discourse.org/t/server-500-error-on-emails-preview-summary/276181/1 "2023-08-22T13:18:21Z")

</div>

When I visit the page in question, I get a Server Error. Why could this be?

 ![CleanShot 2023-08-22 at 15.16.18@2x](https://global.discourse-cdn.com/meta/original/4X/8/f/e/8fe8ab8d7c0f2a3dd48f0847c2f73b71dda25567.png)

 ![CleanShot 2023-08-22 at 15.16.10@2x](https://global.discourse-cdn.com/meta/original/4X/f/1/7/f17f7da473448df9ab67a6e8a28b35a9146d3b47.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 22, 2023, 1:20pm UTC](https://meta.discourse.org/t/server-500-error-on-emails-preview-summary/276181/2 "2023-08-22T13:20:55Z")

</div>

If you visit your `/logs` page there should be more info in there for that kind of error. If you can copy it here so we can see it may give us more clues as to what may have happened.

You could also try [safe mode](https://meta.discourse.org/t/53504?silent=true) and see if the same thing happens, as well as checking the browser console for any errors when you click on the page link. 👍

---

<div class="post-metadata">

### Author: ![Ben\_Sutton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ben_sutton/32/313156_2.png) [@Ben\_Sutton](https://meta.discourse.org/u/Ben_Sutton)
#### Post date: [August 22, 2023, 1:26pm UTC](https://meta.discourse.org/t/server-500-error-on-emails-preview-summary/276181/3 "2023-08-22T13:26:47Z")

</div>

> [@JammyDodger](#):
>
> logs

Very helpful thanks! I found that my Custom Email CSS Styles were causing the problem. Not sure why, they seem pretty kosher to me? Perhaps Discourse doesn’t like my attribute selectors. Discourse Email customisation is lacking ☹

```plaintext
a, span {
border-radius: 20px !important;
}

img:not([alt="replies"], [alt="likes"]) {
border-radius: 8px !important;
}

div div[style*="margin-bottom:25px"] div[style*="padding-top:5px"] {
background-color: unset !important;
padding-top: 15px !important;
}

img[alt="Company"] {
height: 75px !important;
}

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 22, 2023, 1:47pm UTC](https://meta.discourse.org/t/server-500-error-on-emails-preview-summary/276181/4 "2023-08-22T13:47:42Z")

</div>

Hmmm. 🤔 I’m not sure. I’m afraid customising email isn’t my forte, but if you spin up a new support topic it should get more eyes on it. 👍

There’s also a guide that may be useful?

> [@Customizing the Discourse outer email template](https://meta.discourse.org/t/customize-and-style-the-discourse-outer-email-template/153637):
>
> bookmark This guide explains how to customize and style the outer HTML template for all emails sent from your Discourse site. person_raising_hand Required user level: Administrator All emails sent from your site are wrapped in an HTML template that can be customized. This guide covers: Accessing the email style customization section Modifying the HTML template Adding custom CSS Testing email templates Reverting changes A custom template example Interaction with digest emails Changing …

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 21, 2023, 1:47pm UTC](https://meta.discourse.org/t/server-500-error-on-emails-preview-summary/276181/5 "2023-09-21T13:47:59Z")

</div>

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