Mail::body
Set mail body
Description
public self Mail::body( string $body )
Arguments
| Name | Data type | Default | Remarks |
|---|---|---|---|
| $body | string | Email body (plain text) |
Example
Controller
use Fegg\Tool\Mail;
$mail = new Mail();
$mail->body('Mail body');
// Use a template for the body
$mail->body($this->fetchPage('/contact/mail/to_admin'));