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
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.
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.
The previous example renders the following HTML.
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.