MySQL

MySQL is an open-source relational database management system.

Integrate the MySQL API with the Mailgun API

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

Create Mailing List Member with Mailgun API on New Column from MySQL API
MySQL + Mailgun
 
Try it
Create Mailing List Member with Mailgun API on New or Updated Row from MySQL API
MySQL + Mailgun
 
Try it
Create Mailing List Member with Mailgun API on New Row (Custom Query) from MySQL API
MySQL + Mailgun
 
Try it
Create Mailing List Member with Mailgun API on New Row from MySQL API
MySQL + Mailgun
 
Try it
Create Mailing List Member with Mailgun API on New Table from MySQL API
MySQL + Mailgun
 
Try it
New Column from the MySQL API

Emit new event when you add a new column to a table. See the docs here

 
Try it
New or Updated Row from the MySQL API

Emit new event when you add or modify a new row in a table. See the docs here

 
Try it
New Bounce (Instant) from the Mailgun API

Emit new event when the email recipient could not be reached.

 
Try it
New Row from the MySQL API

Emit new event when you add a new row to a table. See the docs here

 
Try it
New Click (Instant) from the Mailgun API

Emit new event when the email recipient clicked on a link in the email. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

 
Try it
Create Row with the MySQL API

Adds a new row. See the docs here

 
Try it
Create Mailing List Member with the Mailgun API

Add to an existing mailing list. See the docs here

 
Try it
Delete Row with the MySQL API

Delete an existing row. See the docs here

 
Try it
Create Route with the Mailgun API

Create a new route. See the docs here

 
Try it
Execute Query with the MySQL API

Find row(s) via a custom query. See the docs here

 
Try it

Overview of MySQL

MySQL is a powerful database management system used by some of the largest
organizations in the world, including Facebook, Google, and Amazon. MySQL is an
open-source relational database management system (RDBMS), as well as a popular
choice for web applications used by millions of websites.

Some applications that can be built using the MySQL API include:

  • A web application that stores and retrieves data from a MySQL database
  • A desktop application that uses a MySQL database for data storage
  • A mobile application that interacts with a MySQL database

Connect MySQL

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import mysql from 'mysql2/promise';

export default defineComponent({
  props: {
    mysql: {
      type: "app",
      app: "mysql",
    }
  },
  async run({steps, $}) {
    const {
      host,
      port,
      username: user,
      password,
      database,
      ca,
      key,
      cert,
      reject_unauthorized: rejectUnauthorized,
    } = this.mysql.$auth;

    const isRejectUnauthorizedUndefined = rejectUnauthorized === undefined;
    const isSslSet = !!(ca && key && cert);

    const connectionConfig = {
      host,
      port,
      user,
      password,
      database,
      ...(isSslSet && {
        ssl: {
          rejectUnauthorized: true,
          ca,
          cert,
          key,
        },
      }),
      ...(!isSslSet && !isRejectUnauthorizedUndefined && {
        ssl: {
          rejectUnauthorized,
        },
      }),
    };

    const connection = await mysql.createConnection(connectionConfig);
    
    const [rows] = await connection.execute('SELECT NOW()');
    return rows;
  },
});

Overview of Mailgun

Mailgun allows you to send and receive emails using their API. With Mailgun,
you can build a variety of applications and services that can send or receive
emails. Here are a few examples of what you can build with Mailgun:

  • A simple email service that can send or receive emails
  • An email marketing service that can send mass emails
  • A notification service that can send emails when certain events occur
  • A task management service that can send emails when tasks are due
  • A customer support service that can send or receive emails from customers

Connect Mailgun

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    mailgun: {
      type: "app",
      app: "mailgun",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.mailgun.$auth.region && this.mailgun.$auth.region === "EU" ? "api.eu" : "api"}.mailgun.net/v3/domains`,
      auth: {
        username: `api`,
        password: `${this.mailgun.$auth.api_key}`,
      },
    })
  },
})