• SupportSolved
  • How to change the confirmation email message contents?

By default, on a sucessful creation of an account, the user will receive this email:

Hey [USERNAME]

Someone (hopefully you!) has signed up to [SITE FLARUM] with this email address.

If this was you, simply click the following link and your account will be activated:
[LINK]

If you did not sign up, please ignore this email.

Where can I go to change the contents of this email? I'd like to word things differently and add some additional site links.

The file you want is: /vendor/flarum/flarum-ext-english/locale/core.yml

However, I wouldn't recommend editing that file directly. If you do that, any changes you make will be overwritten by the next update to the English language pack. You should probably create your own version of the English language pack with the changes you want:

  1. Create a subdirectory of with your vendor name, for example "/vendor/shanesn/".
  2. Copy the English language pack (the flarum-ext-english directory) into your vendor directory.
  3. Edit the core.yml file as needed. (Refer to the i18n docs for info about the language pack format.)
  4. You'll also need to edit the composer.json file with the correct details about your language pack.

Then enable your language pack in the ACP, set it as the default language, and disable the standard language pack.

Please note that if you go this route, you'll need to keep your language pack up to date with any changes made to the standard language pack. You may also have to disable your language pack and enable the standard one when upgrading your Flarum installation.

Please note the vendor directory is not meant to be changed. In fact the vendor folder is meant to be managed by composer completely. Deleting the vendor folder and running composer install or update will simply regenerate it again.

So for now this is a good solution, but please make proper backups when installing extensions or upgrading.

6 months later

Ah nice, this trick >/vendor/flarum/flarum-ext-english/locale/core.yml
useful for temporary made change the words to suitable your forum ?

  • disable English
  • enable again
3 years later

chawki

3 years later

Please do not dump old support discussions, in particular if they were solved.