ContactForm
extends Model
in package
ContactForm is the model behind the contact form.
Table of Contents
- $body : mixed
- $email : mixed
- $name : mixed
- $subject : mixed
- $verifyCode : mixed
- attributeLabels() : mixed
- {@inheritdoc}
- rules() : mixed
- {@inheritdoc}
- sendEmail() : bool
- Sends an email to the specified email address using the information collected by this model.
Properties
$body
public
mixed
$body
public
mixed
$email
$name
public
mixed
$name
$subject
public
mixed
$subject
$verifyCode
public
mixed
$verifyCode
Methods
attributeLabels()
{@inheritdoc}
public
attributeLabels() : mixed
Return values
mixed —rules()
{@inheritdoc}
public
rules() : mixed
Return values
mixed —sendEmail()
Sends an email to the specified email address using the information collected by this model.
public
sendEmail(string $email) : bool
Parameters
- $email : string
-
the target email address
Return values
bool —whether the email was sent