---
title: "init(phoneOrEmail:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpcontactmessagebutton/init(phoneoremail:)"
---

# init(phoneOrEmail:)

Creates a contact message button with the provided contact information.

## Declaration

```swift
init(phoneOrEmail: String)
```

## Parameters

- `phoneOrEmail`: A valid phone number or email address to use in Siri’s compose message flow.

## Return Value

Return Value A new contact message button.

## Discussion

Discussion The button displays a system image that communicates its function. CarPlay never displays the contact information you provide. Tapping the button activates Siri and launches the compose message flow using the phone number or email address you provide.
