1. 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

Discussion in 'XenForo Questions and Support' started by Nick, Oct 20, 2010.

  1. Nick

    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?
  2. DSF

    DSF Well-Known Member

    Put this in your config.php:
    $config['enableMail'] = false;
    kontrabass, DeltaHF and Nick like this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  4. Nick

    Nick Well-Known Member

    You mean one-by-one? On a DB with 1,500 accounts? :confused:

  5. Brogan

    Brogan XenForo Moderator Staff Member

    No I mean the main email address from which all emails are sent.

    Options -> Email Options -> Default Email Address
  6. Nick

    Nick Well-Known Member

    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.
  7. DeltaHF

    DeltaHF Well-Known Member

    Thanks for this - exactly what I was looking for. Is there any documentation which outlines all available $config directives?
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member


    	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,
    Sadik B, Rigel Kentaurus and DeltaHF like this.

Share This Page