Skip to main content
Version: Fegg 5.x (next)

Mail::body

Set mail body

Description​

public self Mail::body( string $body )

Arguments​

NameData typeDefaultRemarks
$bodystringEmail 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'));