Skip to content

RedMadRobot/fastlane-plugin-gmail

Repository files navigation

gmail plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-gmail, add it to your project by running:

fastlane add_plugin gmail

About gmail

Send mail from gmail.

Authentication options:

  • Username and password - specify options FL_GMAIL_USERNAME and FL_GMAIL_PASSWORD.
    G Suite documentation, see Gmail SMTP server.

if you use two-factor authentication, create a password for the application. Sign in using App Passwords

  • Auth by IP for G Suite accounts. You should configure your G Suite account and specify option FL_GMAIL_DOMAIN.
    See documentation SMTP relay.

Options

Key Description Env Var Default
domain G Suite domain FL_GMAIL_DOMAIN gmail.com
username Username for gmail FL_GMAIL_USERNAME
password Password for gmail FL_GMAIL_PASSWORD
to Mail to recipients FL_GMAIL_TO
subject The subject of the email Fl_GMAIL_SUBJECT
body The body of the email Fl_GMAIL_BODY

Example

Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane test.

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.