8000 GitHub - infinitepower18/EmailClientHelper: Swift helper package to send an email using 3rd party apps
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

infinitepower18/EmailClientHelper

Repository files navigation

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")

Example

You can see an example of this package being used in the SubManager iOS app:

image

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Languages

0