---
title: canSendMail()
framework: Message UI
role: symbol
role_heading: Type Method
platforms: [iOS 3.0+, iPadOS 3.0+, Mac Catalyst 13.1+, visionOS 1.0+]
path: messageui/mfmailcomposeviewcontroller/cansendmail()
---

# canSendMail()

Returns a Boolean that indicates whether the current device is able to send email.

## Declaration

```swift
class func canSendMail() -> Bool
```

## Return Value

Return Value true if the device is configured for sending email or false if it is not.

## Discussion

Discussion You should call this method before attempting to display the mail composition interface. If it returns false, you must not display the mail composition interface.
