Code and share email workflows.


Mailscript brings the best features of bots and smart contracts for email.

Use our free API and CLI, in any language. No complicated setups.

Start automating

Questions? Contact Sales

This is how we created our team's email addresses.

Loved by Devops + Data teams.

  • Mailscript captures the best bleeding edge tech and brings it to the world of email. Zargham, CEO - BlockScience

  • I no longer use Google Admin or sendmail - no longer need to open up communication ports or worry about infrastructure. I just write yaml files. NothingIsMagick, CTO - Fundal

  • We went from having to read 400 emails a day to 0, in 10 lines of code. Postables, CTO - RTrade

Turn every email into a programmable workflow.

Hundreds of triggers

Mailscript turns email contents into actionable triggers: keywords, participants, unknown senders, attachments, email headers, message frequency, links and more.

Extend with integrations

Create addresses, compose emails, message mailing lists, send SMS alerts, trigger a webhook, post to Discord, run a script on a daemon.

Collaborate on GitHub

Save your YAML workflows on your repository. Share them with your team or the world. Easily import and remix workflows from other teams. No more complicated setups.

API

Manage your addresses and your workflows using Node.js, Python, Java, Ruby, PHP, Go, Rust, .NET, and more.

CLI

Use Mailscript in your cloud. Run commands from the CLI. We support Windows, Mac and Linux.

Daemon

Use in your own VMs, in the cloud or on-prem with self-hosted daemons.

Headless

No complicated dashboard or limiting UI. If you can script it, Mailscript can automate it.

Serverless

We take care of all the complicated infrastructure. DKIM, ACL and server setup are handled for you.

Get started.

Setup, manage and automate your email infrastructure at the command line.

# Install the cli
npm install -g mailscript

# Setup or link your account
mailscript login

# Add an email address
mailscript addresses:add \
  --address sales@myteam.mailscript.com

# Setup a redirect
mailscript workflows:add --name redirect \
  --trigger sales@myteam.mailscript.com \
  --alias me@gmail.com

# Test the new redirect
mailscript send \
  --to sales@myteam.mailscript.com \
  --from myteam@mailscript.com \
  --subject "Quick test" \
  --text "the body"

Learn more about the CLI or connect with our team on Discord.

# Send an email
curl --request POST \
  --url https://api.mailscript.com/v1/send \
  --header "Authorization: Bearer $MAILSCRIPT_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"to": "test@example.com", "from": "mycompany@mailscript.com", "subject": "Test email", "html": "

a test email

"}'
// Coming soon




# Coming soon
	
	
	

											
// Coming soon
											
											
											

											
											

By developers for developers

Integrate and deliver in minutes with our RESTful APIs, libraries to support your programming language, and interactive documentation.

Find out more through our API playground, view our documentation. Follow @Mailscript on GitHub and connect with our team on Discord.