• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Disable all outgoing e-mails

Nick

Well-known member
#1
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?
 

Brogan

XenForo moderator
Staff member
#3
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.
 

Nick

Well-known member
#6
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.
 

Jake Bunce

XenForo moderator
Staff member
#8
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,
		));
	}