yii\mail\BaseMailer::generateMessageFileName PHP Method

generateMessageFileName() public method

public generateMessageFileName ( ) : string
return string the file name for saving the message when [[useFileTransport]] is true.
    public function generateMessageFileName()
    {
        $time = microtime(true);
        return date('Ymd-His-', $time) . sprintf('%04d', (int) (($time - (int) $time) * 10000)) . '-' . sprintf('%04d', mt_rand(0, 10000)) . '.eml';
    }