Email Trigger

Email trigger lets you run pipelines by simply sending an email. No API calls, no complex setup - just send an email and your pipeline starts.

Why Use Email Triggers?

Perfect for scenarios where you need to trigger deployments from external systems, mobile devices, or when you want to give team members the ability to start pipelines. You can also include parameters directly in the email address to customize the run.

Configuring Email in Pipeline

To configure an email trigger in Pipeline, go to the Workflow tab when creating a new pipeline.
In the TRIGGERS section, click the + icon, then select Email from the dropdown menu.

Image loading...Selecting Email trigger in Pipeline

After selecting the email trigger, in the Settings tab you can configure basic email settings:

Image loading...Email settings with address, prefix and whitelist options

  • Email Address - Each email trigger is assigned a unique email address that serves as the entry point for triggering pipeline runs. This address is automatically generated.
Info
You can regenerate the email address at any time using the "Regenerate email" button in the email trigger settings.
  • Additional Name Prefix - optional prefix that will be added to the generated email address.

  • Senders Whitelist - optional list of email addresses or domains that are allowed to trigger the pipeline. Supported formats:

    • john@buddy.works - specific email address
    • buddy.works - entire domain
    • *@*.buddy.works - wildcard pattern for subdomains
Info
All project members permitted to run pipeline can trigger this pipeline via email using the email address configured in their Buddy profile.

Email Parameters

Image loading...Email parameters configuration showing branch, cache, comment, environment, and variable settings

Email address with parameters

hs0bpmw50el3pvk4kcrqennl+b=dev+cc+d=desc+v.my_var=1@run.buddy.works
Parameter Type and Example
b
Sets run branch
Type: String
Example: master
cc
Clears cache before run
Type: Boolean
Example: true
d
Sets run comment
Type: String
Example: My_first_email_run
e
Sets run environment
Type: String
Example: my-env
fs
Ignores last run commit
Type: Boolean
Example: true
p
Sets run priority
Type: String
Example: HIGH
pr
Sets run pull request
Type: String
Example: pr/12
r
Sets run commit
Type: String
Example: b9e511d1287e2e11015ef4191f4917c14c79301c
t
Sets run tag
Type: String
Example: 1.2.3
v.my_var
Sets run variable
Type: String
Example: my_value
Info
Email triggers provide default variables for accessing email content and metadata in pipeline actions. See Default Variables for the complete list.

Usage Examples

Basic Email Trigger

Send an email to the configured email address to trigger the pipeline:

To: hs0bpmw50el3pvk4kcrqennl@run.buddy.works Subject: Deploy to production Body: Please deploy the latest changes to production environment.

Email with Parameters

Include parameters in the email address to customize the pipeline run:

To: rocket.hs0bpmw50el3pvk4kcrqennl+b=master+p=HIGH+d=Deploying_latest_changes+v.deployment_type=hotfix@run.buddy.works Subject: Deploy to production Body: Please deploy the latest changes to production environment.

Prefix info:

  • rocket. - custom prefix added to the email address

Parameter explanation:

  • b=master - set branch to master
  • p=HIGH - set priority to HIGH
  • d=Deploying_latest_changes - set comment
  • v.deployment_type=hotfix - set custom variable deployment_type

Email with Attachments

Attach files to the email - they will be available in the pipeline filesystem:

To: hs0bpmw50el3pvk4kcrqennl@run.buddy.works Subject: Deploy with configuration Body: Please deploy with the attached configuration file. Attachments: `config.json`, `client-icon.png`
Info
Email attachments are saved as artifacts in the pipeline filesystem and remain available between runs until the cache is cleared.
Info

Additional Resources:

FAQ

How to trigger Buddy pipeline via email?
Send an email to the configured email address. Include parameters in the address (e.g., hs0bpmw50el3pvk4kcrqennl+b=dev+cc+d=Deploying_latest_changes@run.buddy.works) to customize the pipeline run.

How to secure email triggers in Buddy?
Configure the Senders Whitelist to restrict which email addresses can trigger the pipeline. You can whitelist specific emails, domains, or use wildcard patterns.

Can I use email attachments in the pipeline?
Yes, attachments are automatically saved in the pipeline filesystem and remain available between runs until the cache is cleared.

What if my email doesn't trigger the pipeline?
Check that you're using the correct email address, your sender is in the whitelist, the pipeline is active, and you have permission to run it. Also verify that the pipeline has commits available to run.

Last modified on Oct 10, 2025