Email Address
In this article you can learn how to use the build in email property editor
Alias: Umbraco.EmailAddress
Returns: String
Displays an email address.
Settings
The Email Address Property Editor does not come with any further configuration. The property can be configured once it has been added to a Document Type.
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F3701346516-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FG1Byxw7XfiZAj8zDMCTD%252Fuploads%252Fgit-blob-6806c536bb234da652a6b905905818a1c6f488b2%252Femailaddress-datatype.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=b192c029&sv=1)
Content Example
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F3701346516-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FG1Byxw7XfiZAj8zDMCTD%252Fuploads%252Fgit-blob-71b57446e232dd9f5be1e543718d47969bd825ad%252FEmailAddress-Content-v10.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=842953e3&sv=1)
MVC View Example
Without Modelsbuilder
With Modelsbuilder
Add value programmatically
See the example below to learn how a value can be added or changed programmatically to an Email-address property. To update a value of a property editor you need the Content Service.
The example below demonstrates how to add values programmatically using a Razor view. However, this is used for illustrative purposes only and is not the recommended method for production environments.
The value sent to an EmailAddress property needs to be a correct email address, For example: name@domain.com.
It is recommended that you set up validation on this property, in order to verify whether the value added is in the correct format.
Last updated