Support Forums

Disable all emails

This is a discussion on Disable all emails within the Technical Support forums, part of the Technical Support Forums category; Hello For development purposes I have an offline installation. I noticed, that emails still get sent, even tough I did ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 07-14-2009, 11:16 AM   #1
Senior Member
 
pat01's Avatar
 
Join Date: Jun 2006
Location: Switzerland
Posts: 102
Rep Power: 20
pat01 is on a distinguished road
Default Disable all emails

Hello

For development purposes I have an offline installation. I noticed, that emails still get sent, even tough I did set the settings to use SMTP and entered a wrong password by purpose.

Is there a way to disable all emails?

I don't want C68 to send emails off my offline copy for ads which expire soon. The customers would receive them twice: once from my offline installation and once from my online installation.

Thank you very much!

- Patrick
__________________
v4.1.6 dev, Default Template
I say: Mooooh...!
pat01 is offline  
Old 07-14-2009, 11:21 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,483
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Yes you can do this manually. Open includes/classes/kernel/Mailer.php and find:
Code:
function doSend($to, $content, $vars)
    {
        global $Core, $class_tpl;
Just below the global line add:
return TRUE;

This will prevent it from sending emails.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 07-14-2009, 11:29 AM   #3
Senior Member
 
pat01's Avatar
 
Join Date: Jun 2006
Location: Switzerland
Posts: 102
Rep Power: 20
pat01 is on a distinguished road
Default

Perfect, that works great.

Thanks!

- Patrick
__________________
v4.1.6 dev, Default Template
I say: Mooooh...!
pat01 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Receipts tdisraeli Technical Support 3 05-27-2009 09:41 AM
Disable 'Modify an Ad' 0273302733 Technical Support 3 09-25-2008 11:46 AM
Disable Register? discguy Technical Support 5 12-15-2007 11:15 PM


All times are GMT -4. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0