Integrating MuleSoft Anypoint Studio with Email Delivery

Use MuleSoft Anypoint Studio to send emails through the Email Delivery service.

Configure Anypoint Studio to Send Email Through Email Delivery

The MuleSoft Anypoint integration platform is a unified platform that offers a holistic approach to API design and development. The Anypoint Connector for Email (Email Connector) sends and retrieves email messages over standard email protocols.

To enable MuleSoft Anypoint to integrate with Email Delivery:

  1. Make sure Email Delivery is configured to send email. See Getting Started.
    Note

    SMTP credentials are required to configure Anypoint to use Email Delivery. Be sure to note the user name and password when you generate the SMTP credentials.

  2. Create a new Mule Project in Studio.
  3. Drag and drop an HTTP Listener Connector (or another trigger). This source initiates a flow when the HTTP Listener receives a request.
  4. Drag the Email Send operation to the right of the HTTP Listener.
  5. On the Send configuration screen, click the plus sign (+) next to the Connector configuration field.
  6. For Connection, select SMTP Connection.
  7. In the General tab, enter the following values.
    1. Host: Your SMTP Endpoint. See Configuring SMTP Connection to retrieve this value.
    2. Port: 25 or 587 (recommended)
    3. User: SMTP Username
    4. Password: SMTP Password
  8. In the Advanced tab, under Properties, select Edit inline and add the following:
    1. Key: mail.smtp.starttls.enable
    2. Value: true
  9. Go back to the Send screen and set the following values:
    1. From address: Your approved sender.
    2. To address: Edit inline. Click to plus sign (+) to add new emails.
    3. Subject: The subject of your email.
    4. Content: The content of your email. For example, "<h1>Test</h1>".
    5. ContentType: text/html
  10. Save and run the app.