Skip to content

PHPMailerLogger

Properties

subject

public ?string $subject

to

protected string|array $to

from

protected string $from

encoding

protected string $encoding

logFormat

protected ?\Qubus\Log\Format $logFormat

mailer

public \Qubus\Mail\Mailer $mailer

threshold

public string|\Psr\Log\LogLevel $threshold

Methods

__construct

public __construct(\Qubus\Mail\Mailer $mailer, string|\Psr\Log\LogLevel $threshold, array $params = []): mixed

Parameters:

Parameter Type Description
$mailer \Qubus\Mail\Mailer
$threshold string|\Psr\Log\LogLevel
$params array

log

public log(string|\Psr\Log\LogLevel $level, string|\Stringable $message, array $context = []): void

Parameters:

Parameter Type Description
$level string|\Psr\Log\LogLevel
$message string|\Stringable
$context array

send

protected send(mixed $content): void

Parameters:

Parameter Type Description
$content mixed

Throws:


setEncoding

public setEncoding(string $encoding): void

Parameters:

Parameter Type Description
$encoding string

Throws:


getEncoding

public getEncoding(): string

setFrom

public setFrom(mixed $value): void

Parameters:

Parameter Type Description
$value mixed

setTo

public setTo(mixed $value): void

Parameters:

Parameter Type Description
$value mixed

Inherited methods

__construct

public __construct(array $params = []): mixed

Parameters:

Parameter Type Description
$params array

Throws:


isAvailable

public isAvailable(mixed $level): bool

Parameters:

Parameter Type Description
$level mixed

getDate

protected getDate(): string

stringify

protected stringify(array $data = []): string

Parameters:

Parameter Type Description
$data array

interpolate

protected interpolate(mixed $message, array $context = []): string

Parameters:

Parameter Type Description
$message mixed
$context array

__get

public __get(mixed $name): mixed

Parameters:

Parameter Type Description
$name mixed

Throws:


__set

public __set(mixed $name, mixed $value): mixed

Parameters:

Parameter Type Description
$name mixed
$value mixed

Throws:


__isset

public __isset(mixed $name): bool

Parameters:

Parameter Type Description
$name mixed


Automatically generated on 2025-10-13