Skip to main content

Mail::setDebugFlag

Set debug flag and log file name

Description

public self Mail::setDebugFlag( boolean $is_debug, string $log_name )

Arguments

NameData typeDefaultRemarks
$is_debugbooleanDebug flag
$log_namestringDebug log file

Example

Controller
$mail = $this->getClass('Tool/Mail');
$mail->setDebugFlag(true, 'path/to/email.log');