The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
You can define DISABLE_MAIL in config.php to have it logged to a file. Here's the comment from class_mail.php:
Code:
/** * Send the mail. * Note: If you define DISABLE_MAIL in config.php as: * delimited email addresses - Only mail for the recipients will be sent * <filename>.log - Mail will be logged to the given file if writable * any other value - Mail will be disabled |
| Благодарность от: | ||
| yellow_spider | ||
|
#3
|
|||
|
|||
|
Thank you.
Just to clarify this is what you meant (in config.php) ?Code:
$config['disable_mail'] = 1; |
|
#4
|
|||
|
|||
|
I think what it actually means is:
Code:
define('DISABLE_MAIL', 1);
Sorry, I should have included that in my post. |
|
#5
|
|||
|
|||
|
Thank you
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|