Emails.
More...
◆ addHeader()
XH\Mail::addHeader |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
Adds a header field.
- Parameters
-
string | $name | A header field name. |
string | $value | A header field value. |
- Returns
- void
◆ getSubject()
Returns the encoded subject.
- Returns
- string
◆ isValidAddress()
XH\Mail::isValidAddress |
( |
|
$address | ) |
|
Returns whether an email address is valid.
For simplicity we are not aiming for full compliance with RFC 5322. The local-part must be a dot-atom-text. The domain is checked with gethostbyname() after applying idn_to_ascii(), if the latter is available.
- Parameters
-
string | $address | An email address. |
- Returns
- bool
◆ send()
Sends the email and return whether that succeeded.
- Returns
- bool
◆ setMessage()
XH\Mail::setMessage |
( |
|
$message | ) |
|
Sets the message.
- Parameters
-
- Returns
- void
◆ setSubject()
XH\Mail::setSubject |
( |
|
$subject | ) |
|
Sets the Subject.
- Parameters
-
- Returns
- void
◆ setTo()
Sets the To address.
- Parameters
-
string | $to | A valid email address. |
- Returns
- void
The documentation for this class was generated from the following file:
- cmsimple/classes/Mail.php