question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to customise mail subject

See original GitHub issue

Hi, i am using SBA 2.0, and when i am setting property spring.boot.admin.notify.mail.subject: testing custom subject, it is not working and sending mail with default subject “#{application.name} (#{application.id}) is #{to.status}”. Going through the de.codecentric.boot.admin.server.config.AdminServerNotifierAutoConfiguration.MailNotifierConfiguration i found that, mailNotifier bean returns an instance of de.codecentric.boot.admin.server.notify.MailNotifier which does not has subject property. I think the bean should return de.codecentric.boot.admin.notify.MailNotifier which does has the subject property.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Sarvesh-Dcommented, Dec 20, 2018

@manish436 try below:

mail:
  template: classpath:mail-template.html
  additional-properties:
    environment: ${spring.profiles.active}
1reaction
joshistecommented, Jun 14, 2018

add a template similar like this https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server/src/main/resources/META-INF/spring-boot-admin-server/mail/status-changed.html (The subject is configured in line 62) to your classpath and set the spring.boot.admin.notify.mail.template to that location. You can use spring.boot.admin.notify.mail.additional-properties.* to inject additional properties into the template (like the stage/environment)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot edit message subject - Outlook - Microsoft Learn
Symptoms. When you open a message in Outlook and select the subject, the text cursor does not appear, making it impossible to edit...
Read more >
Unable to edit Subject line in Outlook email - The Windows Club
If you can't change the subject line in Outlook 365 on your Windows 11/10 PC, it's because the message header is collapsed. Just...
Read more >
Change the Subject of an Incoming Message - Slipstick Systems
Although the subject field doesn't look editable and appears grayed in older versions of Outlook, which usually means you can't make changes, you...
Read more >
Editing received messages and subjects - MSOutlook.info
To edit the subject of a received message, you'll have to open the message in its own window by double clicking it. Although...
Read more >
How to change/edit subject lines of received messages in ...
Hi Panama Smaek, I am afraid it is impossible to change some message header information of an incoming email, such as from, to,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found