Skip to main content

Send Email

The Send Email step allows you to send customized email notifications during your Appcircle Publish Flow for both iOS and Android builds. This can be used to alert stakeholders, notify of publish statuses, or provide deployment-related information.

Runner Usage

This step requires a runner to work. This means that when the step runs, one of the runners in your organization will be used exclusively for this step.

If you don't have enough concurrency, your other Build and Publish operations will wait in the queue.

Screenshot

Configuration Options

To be able to send email in your publish flow, you need to configure the fields listed below. These settings define how the email is sent, including the SMTP server, sender details, recipients, and the email content. Make sure the credentials and connection details match your email service provider’s requirements.

Screenshot Screenshot
FieldDescription
Mail HostDomain or IP address of the SMTP server (e.g., smtp.gmail.com).
Mail PortPort number of the SMTP server. Common values: 465 (SSL) or 587 (TLS).
SMTP UsernameEmail address used for SMTP login.
SMTP PasswordPassword or app-specific password for the SMTP account.
FromSender information in the format: Name <email@example.com>.
ToComma-separated list of recipient email addresses.
SubjectSubject of the email. Environment variables (e.g., $AC_BUILD_NUMBER) can be used.
Use TLSSet to true to use TLS (if supported by the provider).
Use SSLSet to true to use SSL (if supported by the provider).
Use AuthenticationSet to true if authentication is required by the SMTP server.
Email Provider AccountEmail provider configuration key (e.g., gmail).
Email ContentBody content of the email. Plain text or HTML. Environment variables can be used.
Email Provider Account

Please note that this area is optional, if you are not sure about your provider, the default value (gmail) can be used.

Example Configuration (Gmail)

FieldValue
Mail Hostsmtp.gmail.com
Mail Port465
SMTP Usernameyouremail@gmail.com
SMTP PasswordApp-specific password generated via Google account
FromYour Name <youremail@gmail.com>
Toqa@example.com,pm@example.com
SubjectBuild $AC_BUILD_NUMBER completed for $AC_PROJECT_NAME
Use TLStrue
Use SSLtrue
Use Authenticationtrue
Email Provider Accountgmail
Email ContentHello Team, the build $AC_BUILD_NUMBER for $AC_PROJECT_NAME is done.

Using Environment Variables

You can dynamically populate subject and content using environment variables. They can also be used to securely fill your email settings.

Creating Environment Variables

First, you need to define the environment variables. To do this, go to the Publish module and select Publish Variables. From there, you can start creating the variables for your email settings.

Screenshot

For more information, please refer to the Publish Variables documentation.

Selecting Environment Variables

After creating the environment variables, you will need to select this variable group from your profile settings.

Screenshot Screenshot

You can now use the defined environment variables in your email settings, including the subject and content. For example:

Subject:
$AC_EMAIL_TITLE

Email Content:
Hi team,

A new package for $AC_PROJECT_NAME has been successfully published.

Best,
Appcircle Team