Template:You've got mail

It may take a few minutes from the time the email is sent for it to show up in your inbox. You can at any time by removing the {{You've got mail}} or {{ygm}} template.
| This template is used on approximately 12,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| Any breaking changes to this template, including moving it or nominating it for deletion, must be communicated in advance to Twinkle's users and maintainers at Wikipedia talk:Twinkle. The standard installation of Twinkle relies on this template. Thank you. |
Purpose
Tired of sending a user an email and posting a personalized message on their talk page to tell them you have sent them an email? If you are, then use this template to post a standardized notification to your email recipient instead!
The template does not require substitution.
Usage
- Simplest form
{{You've got mail}}
This posts the basic You've got mail box. If posted on an user talk page, the greeting "Hello" will be followed by that user's name. Don't forget to sign your post per usual: {{You've got mail}} ~~~~
- Subject
{{You've got mail|subject=Example subject}}
This adds "The subject is" and the value for the parameter. |subject=Example subject yields "The subject is Example subject."
- Signature
{{You've got mail|sig=~~~~}}
This puts your signature at the end of the message, inside the box and after an em dash. Otherwise you can just sign normally (~~~~) but the signature is posted after and outside the box. No other value for the |sig= parameter than |sig=~~~~ makes sense (see WP:4TILDES).
- Signature, no dash
{{You've got mail|dashlesssig=~~~~}}
Exactly as |sig= except no dash, offered chiefly to users whose custom signatures already have dashes or other separators.
- Timestamp
{{You've got mail|ts=~~~~~}}
This adds "Message added" and the value of the parameter. Using |ts=~~~~~ produces a standard timestamp (see WP:5TILDES), though you could write anything here (for example, |ts=ages ago).
- Tweet (X)
{{You've got mail|tweet=yes}}
If you use the |tweet= parameter with any value, the message changes to inform the user you have messaged them on X (formerly known as Twitter). This also removes the "It may take a few minutes..." note.
This template does not support any other instant messaging services, such as Threads or Bluesky.
Examples
| Code | Result | Note |
|---|---|---|
| {{You've got mail}} or {{ygm}} |
It may take a few minutes from the time the email is sent for it to show up in your inbox. You can at any time by removing the {{You've got mail}} or {{ygm}} template. |
|
| {{You've got mail|subject=Subject Line}} or {{ygm|subject=Subject Line}} |
It may take a few minutes from the time the email is sent for it to show up in your inbox. You can at any time by removing the {{You've got mail}} or {{ygm}} template. |
"Subject Line" will be replaced with the Subject of your e-mail. |
| {{You've got mail|sig=~~~~}} or {{ygm|sig=~~~~}} |
It may take a few minutes from the time the email is sent for it to show up in your inbox. You can at any time by removing the {{You've got mail}} or {{ygm}} template.— ~~~~ |
~~~~ will be replaced by your actual signature and timestamp.
|
| {{You've got mail|dashlesssig=~~~~}} or {{ygm|dashlesssig=~~~~}} |
It may take a few minutes from the time the email is sent for it to show up in your inbox. You can at any time by removing the {{You've got mail}} or {{ygm}} template. ~~~~ |
~~~~ will be replaced by your actual signature and timestamp (for those who already have dashes or other separators in their custom sigs).
|
| {{You've got mail|ts=~~~~~}} or {{ygm|ts=~~~~~}} |
Message added ~~~~~. It may take a few minutes from the time the email is sent for it to show up in your inbox. You can at any time by removing the {{You've got mail}} or {{ygm}} template. |
~~~~~ will be replaced by your actual timestamp.
|
| {{You've got mail|tweet=yes}} or {{ygm|tweet=yes}} |
Hello. Check your Twitter; you've got a tweet!
You can at any time by removing the {{You've got mail}} or {{ygm}} template. |
The other signature options can be used as well. |
Redirects
{{ygm}}
See also
- {{Talkback}} – the original, large "you have new messages" notice to put on other users' talk pages
- {{subst:Mytalk}} – invokes the talkback template and automatically fills in your username
- {{Talkbacktiny}} – a somewhat smaller version of
{{Talkback}}
- {{Interwiki talkback}} – a "you have new messages" notice to put on other users' talk pages for interwiki purposes
- {{Whisperback}} – a less obtrusive template than
{{Talkback}}, with more features and without the box - {{You've got mail}} – like
{{Talkback}}but to notify of an offsite e-mail - {{Please see}} – similar to
{{Whisperback}}, but notifying others of a topic they may wish to participate in- {{WikiProject please see}} – similar to
{{Please see}}, but for use on WikiProject talk pages
- {{WikiProject please see}} – similar to
- {{Discussion notice}} – an alternative to
{{Please see}}, similar to{{ANI-notice}} - {{Usertalkback}} and {{Userwhisperback}} – notices for the top of one's own user talk page, so as to inform your interlocutors of your user discussion preferences
- {{FYI}} – icon box to give a visual hint to readers of talk page items
- {{Notified}} – disclosure indicating that a notification has been posted on another page
- {{Reply to}} – ping a user without posting on their talk page (uses the mentions notification)
- {{Response}} – to direct the attention of another user to a discussion on a specific talk page
- {{No talkback}} – opt-out of talkback messages from Twinkle