[GH-ISSUE #154] Feature Request: Allow customizing HTML Title #104

Closed
opened 2026-03-15 12:34:09 +03:00 by kerem · 4 comments
Owner

Originally created by @bb on GitHub (Aug 14, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/154

Currently the HTML Title is always "Mailpit". This is fine as long as only one instance is used.

With multiple environments, e.g. local and staging, I'm running multiple instances so it would be great if I could name them "Mailpit Local" and "Mailpit Staging".

Adding e.g. MP_UI_TITLE and --ui-title with default "Mailpit" would be great.

What do you think?

Originally created by @bb on GitHub (Aug 14, 2023). Original GitHub issue: https://github.com/axllent/mailpit/issues/154 Currently the HTML Title is always "Mailpit". This is fine as long as only one instance is used. With multiple environments, e.g. local and staging, I'm running multiple instances so it would be great if I could name them "Mailpit Local" and "Mailpit Staging". Adding e.g. `MP_UI_TITLE` and `--ui-title` with default "Mailpit" would be great. What do you think?
kerem closed this issue 2026-03-15 12:34:15 +03:00
Author
Owner

@axllent commented on GitHub (Aug 15, 2023):

Interesting suggestion @bb. When you say HTML title, I assume you mean the <title> in the <head> (ie: the tab name), and not the "Mailpit" title (headling/link) at the top of the page?

When I started Mailpit I made an intentional effort to keep the CLI flags/options to a minimum, but that grew and grew as popularity picked up and feature requests came in. I still have to make a conscious effort to keep things as simple as possible where avoidable so I'd rather not add new flags if they can be achieved in a different manner.

Thinking aloud here ~ are your Mailpit servers running on the same hostname/ip? What I mean is, what if I simply used the current hostname (that you were accessing Mailpit with) in the <head> <title>, so for example Mailpit - staging.example.com? Would that work for you?

<!-- gh-comment-id:1678409698 --> @axllent commented on GitHub (Aug 15, 2023): Interesting suggestion @bb. When you say HTML title, I assume you mean the `<title>` in the `<head>` (ie: the tab name), and not the "Mailpit" title (headling/link) at the top of the page? When I started Mailpit I made an intentional effort to keep the CLI flags/options to a minimum, but that grew and grew as popularity picked up and feature requests came in. I still have to make a conscious effort to keep things as simple as possible where avoidable so I'd rather not add new flags if they can be achieved in a different manner. Thinking aloud here ~ are your Mailpit servers running on the same hostname/ip? What I mean is, what if I simply used the current hostname (that you were accessing Mailpit with) in the `<head>` `<title>`, so for example `Mailpit - staging.example.com`? Would that work for you?
Author
Owner

@bb commented on GitHub (Aug 15, 2023):

Exactly: title in head 👍

I understand your concern. Adding the Hostname would be fine for me.

<!-- gh-comment-id:1678453806 --> @bb commented on GitHub (Aug 15, 2023): Exactly: title in head 👍 I understand your concern. Adding the Hostname would be fine for me.
Author
Owner

@axllent commented on GitHub (Aug 16, 2023):

I have just released this feature in v1.8.2. Please upgrade and let me know what you think?

<!-- gh-comment-id:1679993880 --> @axllent commented on GitHub (Aug 16, 2023): I have just released this feature in v1.8.2. Please upgrade and let me know what you think?
Author
Owner

@bb commented on GitHub (Aug 16, 2023):

That's great! Thank you ❤️

<!-- gh-comment-id:1680203889 --> @bb commented on GitHub (Aug 16, 2023): That's great! Thank you ❤️
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#104
No description provided.