EmailClientHelper

2.0.0

Swift helper package to send an email using 3rd party apps
infinitepower18/EmailClientHelper

What's New

EmailClientHelper v2.0.0

2024-09-11T00:19:23Z

Migrated package to the Swift 6 language mode.

Xcode 16 is required to use this version. If you are using Xcode 15, use version 1.0.1 of the package.

GitHub

EmailClientHelper

A simple helper package to send an email using 3rd party email clients. Supported clients include Gmail, Outlook and Yahoo Mail.

Currently, the package only supports iOS and visionOS.

You will also need to add this in your app's Info.plist:

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>googlegmail</string>
  <string>ms-outlook</string>
  <string>ymail</string>
</array>

ko-fi

Usage

To check if the Gmail app is available on the user's device:

if EmailClientHelper.isClientAvailable(.gmail) {
    return true
} else {
    return false
}

To send an email using the Gmail app:

EmailClientHelper.sendEmail(client: .gmail, to: "example@example.com")

Description

  • Swift Tools 6.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed May 14 2025 22:51:40 GMT-0900 (Hawaii-Aleutian Daylight Time)