Skip to main content

n8n Mailofly Integration

n8n is a powerful workflow automation tool. You can easily integrate Mailofly into your n8n workflows using the built-in HTTP Request node to send transactional emails, trigger campaigns, and parse inbound messages.

1. Create a Generic Credential in n8n

  1. In n8n, go to Credentials > New Credential.
  2. Select Header Auth.
  3. Set Name: Mailofly API.
  4. Set Header Name: Authorization.
  5. Set Value: Bearer mf_live_your_api_key.

2. Configure the HTTP Request Node

  1. Add an HTTP Request node to your n8n workflow.
  2. Configure the parameters:
    • Method: POST
    • URL: https://api.mailofly.com/api/v1/emails
    • Authentication: Select your Mailofly API Header Auth credential.
    • Send Body: Enabled (JSON).
  3. Set the JSON Body:

3. Test and Activate

Click Test step in n8n. Verify the 200 response containing the generated email id.