Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Wayne B Posted March 31, 2015 Posted March 31, 2015 HiI have a dev board set up and I want to disable all emails from being sent from the dev board during the testing phase. I had just edited the email settings in the ACP to enter fake ones however this causes other errors. Can anyone advise how best to disable emails completely so we can test without our membership getting a whole host of emails from us during the testing phase that will work with IPB4Thanks
OctoDev Posted April 1, 2015 Posted April 1, 2015 HiI have a dev board set up and I want to disable all emails from being sent from the dev board during the testing phase. I had just edited the email settings in the ACP to enter fake ones however this causes other errors. Can anyone advise how best to disable emails completely so we can test without our membership getting a whole host of emails from us during the testing phase that will work with IPB4ThanksFound some topics, you could set up a dead-end SMTP Server. http://ubuntuforums.org/showthread.php?t=1572903
Wayne B Posted April 1, 2015 Author Posted April 1, 2015 HiThanks I found out the answerThe proper way to disable them would be to create a constants.php file with the following content:<?php define( 'EMAIL_DEBUG_PATH', '/path/to/store/debug/files/' ); That will disable emails from being sent and, instead, store them in a folder. Make sure the path set exists and is writable.
AndyF Posted April 2, 2015 Posted April 2, 2015 That's what I do as well. Its different to 4 compared to 3 (and 2 for that matter)I'd suggest the folder is _mail or something in the board root (same as it was in 3x if it was enabled)Note: Put a blank index.php and index.htm file into this directory to keep unwanted 'visitors' out as you don't really want it to be read regardless. You could use htaccess to do it but blank php / htm files are quick and simple.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.