Set the email 'from' address and optionally name

Usage

// basic usage
$m->from(string $email);

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

Arguments

NameType(s)Description
$emailstring

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

$name (optional)

Return value

$this

Object instance it was called from (method supports fluent interface).

Exceptions

Method can throw exceptions on error:

  • WireException - if provided email was invalid


$m methods and properties

API reference based on ProcessWire core version 3.0.109