$mailfrom()

Return new WireMail instance populated with “from” email

Available since version 3.0.113.

Usage

// basic usage
$wireMail = $mail->from(string $email);

// usage with all arguments
$wireMail = $mail->from(string $email, $name = null);

Arguments

NameType(s)Description
$emailstring

Must be a single email address or "User Name <user

$name (optional)

Return value


$mail methods and properties

API reference based on ProcessWire core version 3.0.251