# Como posso personalizar completamente a aparência dos e-mails?

**URL:** https://meta.discourse.org/t/how-can-i-fully-personalise-the-appearance-of-emails/309428
**Category:** Support
**Tags:** email
**Created:** [26 Maio , 2024 00:24 UTC](https://meta.discourse.org/t/how-can-i-fully-personalise-the-appearance-of-emails/309428 "2024-05-26T00:24:43Z")
**Posts on this page:** 1
**Showing post:** 24

<div class="post-metadata">

### Author: ![Noah](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Noah](https://meta.discourse.org/u/Noah)
#### Post date: [28 Maio , 2024 19:18 UTC](https://meta.discourse.org/t/how-can-i-fully-personalise-the-appearance-of-emails/309428/24 "2024-05-28T19:18:38Z")

</div>

Eba! Consegui personalizar os e-mails usando um plugin personalizado inspirado em:

> [@Replacing email/notification.html via custom Plugin - tips?](https://meta.discourse.org/t/replacing-email-notification-html-via-custom-plugin-tips/87529/5?u=noah):
>
> I’ve figured out what the issue was. The code for plugin.rb needs to be put inside after\_initialize: after\_initialize do require\_dependency 'user\_notifications' module ::UserNotificationsOverride def send\_notification\_email(opts) Rails.configuration.paths["app/views"].unshift(File.expand\_path("../templates", \_\_FILE\_\_)) super(opts) end end class ::UserNotifications prepend ::UserNotificationsOverride end end That’s working fin…

Em seguida, personalizei os arquivos .erb dentro do diretório de templates. 🥳

Um grande obrigado a todos que me ajudaram! ❤

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-fully-personalise-the-appearance-of-emails/309428)._
