cachethq / cachet

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

Modify incident email to HTML code? #4408

Closed Artic6 closed 3 days ago

Artic6 commented 4 days ago

if I send an instant update is there a way I can change the code so that Rowson send the default email. It sends one to a certain HTML file located on the server?

we are looking to brand emails that send out and at the moment I can’t see which file I need to update apply them to the emails received by the end users?

jbrooksuk commented 4 days ago

Which version of Cachet are you currently using?

Artic6 commented 4 days ago

V2.4.1

On Wed, 3 Jul 2024 at 14:23, James Brooks @.***> wrote:

Which version of Cachet are you currently using?

— Reply to this email directly, view it on GitHub https://github.com/cachethq/cachet/issues/4408#issuecomment-2206068563, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7S746OJW5OQ2ZXJIUILTZKP3L7AVCNFSM6AAAAABKJNSFEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWGA3DQNJWGM . You are receiving this because you authored the thread.Message ID: @.***>

Artic6 commented 4 days ago

what would be nice is if you could tell me the file where I can customise the outbound email for an incident or if I can call another file that has the HTML content in it

Artic6 commented 4 days ago

I have found files called new.blade.php and new.blade.php in this folder:

/var/www/html/Cachet/resources/views/notifications/incident

the new.blade.php has the contents of this:

@component('mail::message')

{{ trans('notifications.incident.new.mail.greeting', ['app_name' => Config::get('setting.app_name')]) }}

{{ $incident->message }}

@component('mail::button', ['url' => $actionUrl]) {{ $actionText }} @endcomponent

@lang('Thanks,')
{{ Config::get('setting.app_name') }}

@include('notifications.partials.subscription')

@endcomponent

However that does not look like HTML at all but it does refer to @component('mail::message') - where is this file located ?

Artic6 commented 4 days ago

Looks like the folder I require is this :

/var/www/html/Cachet/resources/views/vendor/mail/html

If I ammend the header.blade.php I can add in an image with html, but I cannot tell how the rest of the email is formatted with the content ?

Artic6 commented 3 days ago

I figured this problem out myself so I’m closing it