# Outbound notification e-mails failing after attempt to change attachment size limit

**URL:** https://meta.discourse.org/t/outbound-notification-e-mails-failing-after-attempt-to-change-attachment-size-limit/289406
**Category:** Bug
**Created:** [December 21, 2023, 2:39am UTC](https://meta.discourse.org/t/outbound-notification-e-mails-failing-after-attempt-to-change-attachment-size-limit/289406 "2023-12-21T02:39:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![managenet](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@managenet](https://meta.discourse.org/u/managenet)
#### Post date: [December 21, 2023, 2:39am UTC](https://meta.discourse.org/t/outbound-notification-e-mails-failing-after-attempt-to-change-attachment-size-limit/289406/1 "2023-12-21T02:39:13Z")

</div>

Outbound notifications upon new postings were working just fine. I tried to increase the email total attachment size limit kb to 25 MB which then produced the attached error (image 1)

I then tried to unwind the change and set email total attachment size limit kb to 0 in order to disable outbound attachments, but that just changed the value displayed in the error to ‘0’ and the error persists. (image 2)

 ![error](https://global.discourse-cdn.com/meta/original/4X/e/9/a/e9a814aaafa1e3aaaacbb0ec75917983399165c7.jpeg)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [December 21, 2023, 4:46am UTC](https://meta.discourse.org/t/outbound-notification-e-mails-failing-after-attempt-to-change-attachment-size-limit/289406/2 "2023-12-21T04:46:57Z")

</div>

`Error Message: undefined method “kilobytes” for “25600”:String.`

Maybe try updating your site. It seems that the issue was recently fixed: [Error message when uploading logo](https://meta.discourse.org/t/error-message-when-uploading-logo/289409).

---

<div class="post-metadata">

### Author: ![managenet](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@managenet](https://meta.discourse.org/u/managenet)
#### Post date: [December 21, 2023, 6:37am UTC](https://meta.discourse.org/t/outbound-notification-e-mails-failing-after-attempt-to-change-attachment-size-limit/289406/3 "2023-12-21T06:37:50Z")

</div>

Hi Simon,

Thank you for the reply! I just installed yesterday , so I believe I’m currently running the latest version.

3.2.0.beta4-dev

After my install, I was doing quite a bit of testing and outbound notifications were working great. It wasn’t until I changed the size limit for attachments that the problem cropped up. Since then I’ve tried setting it back to zero as I mentioned. I have also restarted the server. Any other thoughts? I have not tried a rebuild but that might be next.

---

<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: [December 21, 2023, 7:20am UTC](https://meta.discourse.org/t/outbound-notification-e-mails-failing-after-attempt-to-change-attachment-size-limit/289406/4 "2023-12-21T07:20:35Z")

</div>

Hello and welcome @managenet 🙂

Could you try updating from your `/upgrade` page? It may be easier than a rebuild. This should pull in any fixes that were created yesterday and will tell us if there’s another edge case that’s not been caught with this issue.

---

<div class="post-metadata">

### Author: ![managenet](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@managenet](https://meta.discourse.org/u/managenet)
#### Post date: [December 21, 2023, 3:34pm UTC](https://meta.discourse.org/t/outbound-notification-e-mails-failing-after-attempt-to-change-attachment-size-limit/289406/5 "2023-12-21T15:34:51Z")

</div>

Oh you guys are good!

I updated from the /upgrade page as suggested, and .. like magic, the upgrade ran efficiently to completion and all was put to right.

With the ‘email total attachment size limit kb’ value still set to 0, I verified successful outbound notifications (including those that had been in the queue)

I then set the ‘email total attachment size limit kb’ value to 10 MB and verified successful outbound notifications include attachments as expected.

This bug appears squashed.

Thank you very much for all your hard work on Discourse and for the prompt replies! It is very much appreciated.

 ![Screenshot 2023-12-21 at 9.31.16 AM](https://global.discourse-cdn.com/meta/original/4X/5/f/4/5f44430c55c4b678b116780cad2d69ac3cfb2985.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 24, 2023, 9:00pm UTC](https://meta.discourse.org/t/outbound-notification-e-mails-failing-after-attempt-to-change-attachment-size-limit/289406/6 "2023-12-24T21:00:19Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
