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
Name | Type(s) | Description |
---|---|---|
email | string | 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 or in blacklist
API reference based on ProcessWire core version 3.0.236