Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email - Format #2661

Closed
2 tasks done
GalacticAust opened this issue Jan 24, 2023 · 7 comments · Fixed by #3414
Closed
2 tasks done

Email - Format #2661

GalacticAust opened this issue Jan 24, 2023 · 7 comments · Fixed by #3414

Comments

@GalacticAust
Copy link

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

Hi All

have seen updates on this in other posts but it has not solved my issue

I want to format the body of the email

can anyone advise how to edit the body template

🐻 Uptime-Kuma Version

1.19.6

💻 Operating System and Arch

Ubuntu

🌐 Browser

Firefox

🐋 Docker Version

No response

🟩 NodeJS Version

No response

@rezzorix
Copy link
Contributor

You look at the following file:

/app/src/components/notifications/SMTP.vue

Adjust between lines 93 - 101 as required.

Note; depending on how and where you make changes, they wont be persistent and will be lost if e.g. you update or re-create the container.

@GalacticAust
Copy link
Author

Hi there

Just looking at line 93-103 isnt this just for the subject line?

{{ $t("emailCustomSubject") }}
(leave blank for default one)
{{NAME}}: Service Name
{{HOSTNAME_OR_URL}}: Hostname or URL
{{URL}}: URL
{{STATUS}}: Status

@GalacticAust
Copy link
Author

  <div class="mb-3">
        <label for="subject-email" class="form-label">{{ $t("emailCustomSubject") }}</label>
        <input id="subject-email" v-model="$parent.notification.customSubject" type="text" class="form-control" autocomplete="false" placeholder="">
        <div v-pre class="form-text">
            (leave blank for default one)<br />
            {{NAME}}: Service Name<br />
            {{HOSTNAME_OR_URL}}: Hostname or URL<br />
            {{URL}}: URL<br />
            {{STATUS}}: Status<br />
        </div>
    </div>
</div>

@GalacticAust
Copy link
Author

any update on how we edit the body? as it all seems to be subject line only

@CommanderStorm
Copy link
Collaborator

Related #1529

@github-actions
Copy link

We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days.

@github-actions github-actions bot added the Stale label Aug 26, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 2 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants