\frontend\modelsContactForm

ContactForm is the model behind the contact form.

Summary

Methods
Properties
Constants
rules()
attributeLabels()
sendEmail()
$name
$email
$subject
$body
$verifyCode
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : 

Type

$email

$email : 

Type

$subject

$subject : 

Type

$body

$body : 

Type

$verifyCode

$verifyCode : 

Type

Methods

rules()

rules() 

{@inheritdoc}

attributeLabels()

attributeLabels() 

{@inheritdoc}

sendEmail()

sendEmail(string  $email) : boolean

Sends an email to the specified email address using the information collected by this model.

Parameters

string $email

the target email address

Returns

boolean —

whether the email was sent