Index

cMailState

MMO\core\entities · 1 symbol · generated 5 Oct 2026

enum

cMailState

MailLog.php:10

What became of a mail a MailLog records.

enum MMO\core\entities\cMailState: string
Namespace
MMO\core\entities

Index

FAILEDIt never left: mail() refused it, or the mail was incomplete (no sender, no recipient, no body).
SENTmail() handed it to the local mail server (sendmail).
name readonly
value readonly
cases() static
from($value) static
tryFrom($value) static

Constants2

FAILED

It never left: mail() refused it, or the mail was incomplete (no sender, no recipient, no body). MailLog::$error tells why.

const FAILED = MMO\core\entities\cMailState::FAILED

SENT

mail() handed it to the local mail server (sendmail). Its delivery is that server's: a bounce is in its own log (/var/log/mail.log), not here.

const SENT = MMO\core\entities\cMailState::SENT

Properties2

name

readonly
readonly string $name
Type
string

value

readonly
readonly string $value
Type
string

Methods3

cases()

static
static function cases(): array
returnsarray

from($value)

static
static function from(string|int $value): static
$valuestring | int
returnsstatic

tryFrom($value)

static
static function tryFrom(string|int $value): ?static
$valuestring | int
returnsnull | static