Mailgun

Sending, receiving and tracking email effortlessly

Go to site

Integrate the Mailgun API with the MySQL API

Setup the Mailgun API trigger to run a workflow which integrates with the MySQL API. Pipedream's integration platform allows you to integrate Mailgun and MySQL remarkably fast. Free for developers.

Popular Ways to Connect Mailgun with MySQL

1
-
6
of
7
integrations by popularity

Popular Mailgun and MySQL Triggers

1
-
5
of
5
triggers by popularity

Popular Mailgun and MySQL Actions

1
-
2
of
2
actions by popularity

Connect Mailgun

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://${auths.mailgun.region && auths.mailgun.region === "EU" ? "api.eu" : "api"}.mailgun.net/v3/domains`,
  auth: {
    username: `api`,
    password: `${auths.mailgun.api_key}`,
  },
})

Connect MySQL

const mysql = require('mysql2/promise');

const { host, port, username, password, database } = auths.mysql

const connection = await mysql.createConnection({
  host,
  port,
  user: username,
  password,
  database,
});

const [rows, fields] = await connection.execute('SELECT NOW()');
console.log(rows)