Remove the "Install Client" from Welcome Email

Im trying to remove the link to install the client from the welcome email.
How can this be done ??


or even change the text and hyper link would be better ?

Go to

Ok well I found the php connected to the welcome email

I edited it to suit and this is the result

I tried to edit the php-file but could not succeed.
I tried to put /* and */ around the following lines but then all users got invisible.

How can I edit the file to remove this? Should I just remove the lines?

$l10n->t(‘Install Client’),
$this->config->getSystemValue(‘customclient_desktop’, ‘’)

I believe the sane way to do this is by creating an app that extends the OC\Mail\EMailTemplate class. Within this new class, override the addBodyButtonGroup method to add any buttons you wish.

class EMailTemplate extends OC\Mail\EMailTemplate {
	public function addBodyButtonGroup(
		$textLeft, $urlLeft,
		$textRight, $urlRight,
		$plainTextLeft = '',
		$plainTextRight = '') {

		// Omit the left button ("Install client") and only show the button that links to the instance
		if ($this->emailId === 'settings.Welcome') {
			parent::addBodyButton('My new button!', 'https://my.domain.tld/', 'My new button!');
		parent::addBodyButtonGroup($textLeft, $urlLeft, $textRight, $urlRight, $plainTextLeft, $plainTextRight);






and thats all

Operating system: Linux 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64

Webserver: Apache/2.4.41 (Ubuntu) (apache2handler)

Database: mysql 10.3.29

PHP version: 7.4.3

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, intl, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 21.0.2 -

Nextcloud fresh install:

there is no settings folder anymore.

I also don’t find: " OC\Mail\EMailTemplate"

EDIT: Sorry now see this thread is about NC 16. I was coming here by search engine.


I’m very new to Nextcloud, Linux and PHP.
I managed to set up a Nextcloud on a Raspberry Pi.

I was trying change the templates in


to remove the second button, but for I don’t see any changes in the welcome mail.

Can anyone explain a bit more step by step what I have to do to get rid of the second button, or to rename it?
Is it also possible to insert a custom welcome text in different languages?