Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Jan 2012, 17:55
yellow_spider yellow_spider is offline
 
Join Date: Dec 2005
Question Temporarily disable email

Is there a way to temporarily disable all outgoing mail ?

I am aware of the log to file but will it still attempt to send mail with that set up ? , I do need that as I want to check the mails being sent correctly etc, without actually sending it.

XF and IPB both have a config variable you can set to prevent outbound mail going (just logs to a file instead) for testing / debug purposes. Does VB4 have anything similar ? , I guess I just need to add a line somewhere or enable something in a configuration file.
__________________
Reply With Quote
  #2  
Old 29 Jan 2012, 20:04
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You can define DISABLE_MAIL in config.php to have it logged to a file. Here's the comment from class_mail.php:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If you run a mail test from the admincp, I believe (based on a look at the code) that it will be sent even if you've defined DISABLE_EMAIL.
Reply With Quote
  #3  
Old 30 Jan 2012, 14:12
yellow_spider yellow_spider is offline
 
Join Date: Dec 2005
Thank you. Just to clarify this is what you meant (in config.php) ?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

My testboard is at 3.8 so I guess its the same for 3.x and 4.x
__________________
Reply With Quote
  #4  
Old 30 Jan 2012, 14:14
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I think what it actually means is:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Sorry, I should have included that in my post.
Reply With Quote
  #5  
Old 30 Jan 2012, 14:28
yellow_spider yellow_spider is offline
 
Join Date: Dec 2005
Thank you
__________________
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:23.

Layout Options | Width: Wide Color: