Output Email (Deprecated)

ui:outputEmail

Deprecated as of API version 47.0. We recommend migrating to Lightning Web Components and using the lightning-formatted-email component.

For Use In

Lightning Experience, Experience Builder Sites, Salesforce Mobile App, Lightning Out (Beta), Standalone Lightning App

Deprecation Guidelines 

We recommend using Lightning Web Components whenever possible. When migrating to Lightning Web Components, use lightning-formatted-email.

For more information, see Aura Components in the ui Namespace Are Deprecated.

Usage Overview (Deprecated) 

A ui:outputEmail component represents an email output that is wrapped in an HTML span tag. We recommend using lightning:formattedEmail instead of ui:outputEmail.

ui:outputEmail can be used with ui:inputEmail, which takes in an email input. To apply Lightning Design System styling, we recommend that you use lightning:input with type="email" instead of ui:inputEmail.

The email output is wrapped in an HTML anchor element and mailto is automatically appended to it. This is a simple set up of a ui:outputEmail component.

1<ui:outputEmail value="abc@email.com" />

The previous example renders the following HTML.

1<span><a href="mailto:abc@email.com" class="uiOutputEmail">abc@email.com</a></span>

To display record data for Salesforce objects, use lightning:outputField with lightning:recordViewForm, or use lightning:recordForm. To display record data with a custom layout, use force:recordData.

Note

Attributes 

NameDescriptionTypeDefaultRequired
bodyThe body of the component. In markup, this is everything in the body of the tag.Aura.Component[]
classA CSS style to be attached to the component. This style is added in addition to base styles output by the component.String
valueThe output value of the emailString