Unable to customise mail subject
See original GitHub issueHi, 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:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@manish436 try below:
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 usespring.boot.admin.notify.mail.additional-properties.*
to inject additional properties into the template (like the stage/environment)