PHPMailer::setFrom
Set the From and FromName properties.
Signature
public function setFrom(string
$address,
[string
$name = '',
[boolean
$auto = true]] )
Parameters
$address
—
string
$name
—
string
$auto
—
boolean
Whether to also set the Sender address, defaults to true
Returns
- boolean
Errors/Exceptions
-
phpmailerException
Violations
Checkstyle
Line |
Column |
Severity |
Message |
1121 |
61 |
warning
|
Line exceeds 120 characters; contains 125 characters |
1122 |
176 |
warning
|
Line exceeds 120 characters; contains 176 characters |