cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
14.01k stars 1.56k forks source link

Customize email templates #1009

Closed peterlaws closed 7 years ago

peterlaws commented 9 years ago

Sorry if this has been suggested already.

Currently, the email that subscribers get are very basic. Will there be a way to edit this, what it states, layout, etc?

eg.

Subject

New Incident Reported.

Body

New incident has been reported on Name Status Page. Investigating This is a test incident Name Status Page is powered by Cachet. Unsuscribe from email updates. Name Status Page

I also noticed that the email subject has "New Incident Reported" which is very ambiguous. Maybe include the incident title to the subject, as I do not see the title of the incident mentioned anywhere else?

wngravette commented 9 years ago

Changing the layout/appearance of the emails would simply be a matter of editing the relevant views.

jbrooksuk commented 9 years ago

@wngravette feel free to submit a PR with your suggested changes :)

jbrooksuk commented 9 years ago

The email system isn't the best, we're completely aware :)

wngravette commented 9 years ago

No problem, I may just even be able to whip something up within the next few days. Cheers.

On 7 Oct 2015, at 6:16 PM, James Brooks notifications@github.com wrote:

@wngravette feel free to submit a PR with your suggested changes :)

— Reply to this email directly or view it on GitHub.

jbrooksuk commented 9 years ago

Thanks @wngravette, I'm moving this to 2.1.0 but if you're able to do it before we ship, that'd be awesome.

peterlaws commented 9 years ago

Changing the layout/appearance of the emails would simply be a matter of editing the relevant views.

I assume the email subjects are hardcoded, right?

wngravette commented 9 years ago

Indeed, at app/Handlers/Events/ in the relevant files.

jbrooksuk commented 9 years ago

Renamed this issue.

AntoineAugusti commented 8 years ago

@peterlaws Are you going to tackle this? If not, what do we need to do precisely?

jbrooksuk commented 8 years ago

@AntoineAugusti:

  1. Store email contents in a table.
  2. Use Twig or something to allow customization, unless we want to stick with Blade? Twig is a good templating language for things like this.
  3. We'll need a panel in the dashboard that allows editing of templates.
  4. Change the email handling code to first grab the content, compile and then send.
AntoineAugusti commented 8 years ago

@jbrooksuk This seems a lot of work. Are you sure a lot of people are going to want to edit the basic email template?

jbrooksuk commented 8 years ago

@AntoineAugusti it is, which is why we've not done it ourselves yet :)

srikanth88infy commented 8 years ago

May I know if there are any updates regarding this feature? I would love to know how can I tweak a basic template. Can anyone point me how can I achieve this?

jbrooksuk commented 8 years ago

@srikanth88infy you can manually edit the respective views?

peterlaws commented 8 years ago

If we do that, we would need to keep modifying the files each update, if we update via git?

I edited them, and when I upgraded, git complained that it wouldn't update due to inconsistency with these files.

jbrooksuk commented 8 years ago

You can stash files, then re-apply but you do run the risk of them not applying again. We'll get round to this eventually, I'm sure :)

srikanth88infy commented 8 years ago

@peterlaws Could you point me how could I manually modify the email templates?

peterlaws commented 8 years ago

Just navigate to /resources/views/emails/ within your Cachet root directory, all the templates are there.

srikanth88infy commented 8 years ago

@peterlaws Thank you!!! :)

nkuehn commented 8 years ago

+1 for this - as a minimum it would be very helpful to customize the subject line via a template. Maybe this here are two separate issues - one for the hardcoded subject line and one for general customizability of the email templates?

Specific Issue in case is the we'd like to mention the affected component in the subject line ( there are very critical components an less critical ones and I always tend to get a heart attack on "new incident reported" email subject lines that turn out to be just some helper tool failure ).

userguy commented 8 years ago

+1

joecohens commented 8 years ago

Emails have a new design now and subject making it more informative.

Subject: [New Incident] Investigating: Degraded performance in the API Design:

screen shot 2016-05-28 at 12 43 24 pm
GrahamCampbell commented 8 years ago

This new design will be available in v2.3.0-RC3, and later.

jbrooksuk commented 8 years ago

💥

luiseduardobrito commented 8 years ago

+1

GrahamCampbell commented 8 years ago

:)

CosmicPuppy commented 7 years ago

+1

jbrooksuk commented 7 years ago

Along with the new notification system, your theme colours will transfer across to the email template. Aside from that, you'll need to go into Cachet's code to customise it 👍

Majklas commented 4 years ago

any news on this?