This project is a fastlane plugin. To get started with fastlane-plugin-gmail_notify
, add it to your project by running:
fastlane add_plugin gmail_notify
Sends a mail using SMTP
gmail_notify
allows you to send a gmail using smtp so that you can notify the team about a new release.
To get started you must have a gmail and app password generated.
gmail_notify(
smtp_email: "<sender email>",
smtp_password: "<app password>",
recipients: "<recipients comma separated>",
cc: "<cc>",
subject: "<gmail subject>",
template_file: "<path to mail template>",
lint_report: "<path to lint report html file>",
placeholders: {
var1: "world"
}
)
The mail body is constructed using a html template file. The value for variables in the template file can be provided in the placeholder hash.
Key | Description |
---|---|
smtp_email |
Email account for smtp authentication (Sender's email) |
smtp_password |
Password for smtp authentication |
recipients |
Comma separated list of recipients |
cc |
Comma separated list of cc |
subject |
Email subject |
template_file |
Path to template file |
lint_report |
Path to lint report html file |
placeholders |
Hash that contains value of variables in the template |
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.