Disable all outgoing e-mails

Nick

Well-known member
I know in vBulletin you can add a line to the config.php file to disable all outgoing e-mails and communication. This is handy when copying an active forum/database to a test environment from which you do not want any e-mails (i.e. notifications, conversation notices, etc.) sent out.

Is there a similar way of achieving essentially the same thing with XenForo?
 
Can't you just remove the email address from within the ACP?

I just tried it and didn't get an error but I don't know how it will work in practice.
 
No I mean the main email address from which all emails are sent.

Options -> Email Options -> Default Email Address
I wouldn't think that that would disable the sending of e-mails. I assume it would just send them without a return address. But I'm not sure.
 
Thanks for this - exactly what I was looking for. Is there any documentation which outlines all available $config directives?

library/XenForo/Application.php

Code:
	public function loadDefaultConfig()
	{
		return new Zend_Config(array(
			'db' => array(
				'adapter' => 'mysqli',
				'host' => 'localhost',
				'port' => '3306',
				'username' => '',
				'password' => '',
				'dbname' => ''
			),
			'cache' => array(
				'enabled' => false,
				'frontend' => 'core',
				'frontendOptions' => array(
					'caching' => true,
					'cache_id_prefix' => 'xf_'
				),
				'backend' => 'file',
				'backendOptions' => array(
					'file_name_prefix' => 'xf_'
				)
			),
			'debug' => false,
			'enableListeners' => true,
			'development' => array(
				'directory' => '', // relative to the configuration directory
				'default_addon' => ''
			),
			'superAdmins' => '1',
			'globalSalt' => '13df7e33aed63b6509b03a184f8f43ab',
			'jsVersion' => '',
			'cookie' => array(
				'prefix' => 'xf_',
				'path' => '/',
				'domain' => ''
			),
			'enableMail' => true,
			'internalDataPath' => 'internal_data',
			'externalDataPath' => 'data',
			'externalDataUrl' => 'data',
			'javaScriptUrl' => 'js',
			'checkVersion' => true,
			'enableGzip' => true,
			'enableContentLength' => true,
		));
	}
 
Top Bottom