# contact-forms/1.4.1/classes/Element/Email.php

Contact Forms by Cimatti, version 1.4.1. 11 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/1.4.1/code/classes/Element/Email.php
- Raw: https://pluginprobe.com/plugins/contact-forms/1.4.1/raw/classes/Element/Email.php
- Modified: 2013-07-25T16:57:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/1.4.1/code/classes/Element/Email.php#L10-L20`.

```php
<?php
class AccuaForm_Element_Email extends Element_Textbox {
  public function __construct($label, $name, array $properties = null) {
    parent::__construct($label,$name,$properties);
	  $this->attributes['type'] = 'email';
		$this->setValidation(new Validation_Email(
      str_replace('%element%', $label, __("Attention: '%element%' must contain an email address.", 'accua-form-api'))
    ));
  }
}

```
