Repository navigation
How do I change the email subject? #3970
|
Hello, first - thank you for making this, super helpful stuff! I just got Watchtower set up for the first time on one of my servers along with installing Shoutrrr for email notifications. It immediately sent out an email to me with the subject "Watchtower updates on 10713744000f". I'm not sure where the 10713744000f is coming from? Is there a way to change that somehow? This is what I have in my compose.yaml: |
Replies: 1 comment 1 reply
|
Thanks for the kind words!
You have a few options. Use a friendly hostname. Add this to your environment: WATCHTOWER_NOTIFICATIONS_HOSTNAME: myserverThe subject then becomes Use your own subject. If you'd rather have the subject from your URL, add this: WATCHTOWER_NOTIFICATION_SKIP_TITLE: "true"Watchtower then stops passing its title, so your Add a prefix tag. The variable name is These settings are described in the notification settings docs. A couple of smaller notes:
|
Thanks for the kind words!
10713744000fis the hostname of the Watchtower container. Docker uses the short container ID as a container's hostname unless you set one. Watchtower builds the notification title asWatchtower updates on <hostname>, and the SMTP service uses that title as the email subject. The title also takes precedence over thesubjectparameter in your URL, which is whysubject=Watchtowerhad no effect.You have a few options.
Use a friendly hostname. Add this to your environment:
The subject then becomes
Watchtower updates on myserver. Settinghostname: myserveron the Watchtower service in your compose.yaml has the same ef…