Mailgun

Mailgun é um serviço poderoso de entrega de e-mail projetado para desenvolvedores e empresas enviarem, receberem e rastrearem e-mails com facilidade. O Mailgun permite aproveitar APIs robustas para e-mail transacional e de marketing confiável, gerenciamento flexível de mailing lists e rastreamento avançado de eventos.

Com o conjunto abrangente de recursos do Mailgun, você pode automatizar operações-chave de e-mail e monitorar de perto a deliverability e o engajamento dos destinatários. Isso o torna uma solução ideal para automação de fluxos de trabalho em que comunicações, notificações e e-mails de campanha são partes centrais dos seus processos.

Principais recursos do Mailgun:

  • Envio de e-mail transacional: Entregue e-mails de alto volume, como notificações de conta, recibos, alertas e redefinições de senha.
  • Conteúdo rico de e-mail: Envie e-mails em texto simples e HTML, e use tags para categorizar e rastrear suas mensagens.
  • Gerenciamento de mailing lists: Crie, atualize e gerencie mailing lists e membros para enviar comunicações em grupo com eficiência.
  • Informações de domínio: Recupere detalhes sobre seus domínios de envio para monitorar configuração e saúde.
  • Rastreamento de eventos: Analise deliverability e engajamento com dados detalhados de eventos das mensagens enviadas.
  • Recuperação de mensagens: Acesse mensagens armazenadas para conformidade, análise ou troubleshooting.

Ao integrar o Mailgun ao Zoen, seus agentes passam a enviar e-mails, gerenciar listas, acessar informações de domínio e monitorar eventos em tempo real de forma programática como parte de fluxos de trabalho automatizados. Isso permite engajamento inteligente e orientado a dados com seus usuários diretamente a partir dos seus processos com IA.

Usage Instructions

Integrate Mailgun into your workflow. Send transactional emails, manage mailing lists and members, view domain information, and track email events. Supports text and HTML emails, tags for tracking, and comprehensive list management.

Actions

mailgun_send_message

Send an email using Mailgun API

Input

ParameterTypeRequiredDescription
apiKeystringYesMailgun API key
domainstringYesMailgun sending domain (e.g., mg.example.com)
fromstringYesSender email address (e.g., sender@example.com or "Name <sender@example.com>")
tostringYesRecipient email address (e.g., user@example.com). Use comma-separated values for multiple recipients
subjectstringYesEmail subject line
textstringNoPlain text body of the email
htmlstringNoHTML body of the email (e.g., "<h1>Hello</h1><p>Message content</p>")
ccstringNoCC recipient email address (e.g., cc@example.com). Use comma-separated values for multiple recipients
bccstringNoBCC recipient email address (e.g., bcc@example.com). Use comma-separated values for multiple recipients
tagsstringNoTags for the email (comma-separated)

Output

ParameterTypeDescription
successbooleanWhether the message was sent successfully
idstringMessage ID
messagestringResponse message from Mailgun

mailgun_get_message

Retrieve a stored message by its key

Input

ParameterTypeRequiredDescription
apiKeystringYesMailgun API key
domainstringYesMailgun domain for retrieving messages (e.g., mg.example.com)
messageKeystringYesMessage storage key

Output

ParameterTypeDescription
successbooleanWhether the request was successful
recipientsstringMessage recipients
fromstringSender email
subjectstringMessage subject
bodyPlainstringPlain text body
strippedTextstringStripped text
strippedSignaturestringStripped signature
bodyHtmlstringHTML body
strippedHtmlstringStripped HTML
attachmentCountnumberNumber of attachments
timestampnumberMessage timestamp
messageHeadersjsonMessage headers
contentIdMapjsonContent ID map

mailgun_list_messages

List events (logs) for messages sent through Mailgun

Input

ParameterTypeRequiredDescription
apiKeystringYesMailgun API key
domainstringYesMailgun domain for listing events (e.g., mg.example.com)
eventstringNoFilter by event type (accepted, delivered, failed, opened, clicked, etc.)
limitnumberNoMaximum number of events to return (default: 100)

Output

ParameterTypeDescription
successbooleanWhether the request was successful
itemsjsonArray of event items
pagingjsonPaging information

mailgun_create_mailing_list

Create a new mailing list

Input

ParameterTypeRequiredDescription
apiKeystringYesMailgun API key
addressstringYesMailing list address (e.g., newsletter@mg.example.com)
namestringNoMailing list name
descriptionstringNoMailing list description
accessLevelstringNoAccess level: readonly, members, or everyone

Output

ParameterTypeDescription
successbooleanWhether the list was created successfully
messagestringResponse message
listjsonCreated mailing list details

mailgun_get_mailing_list

Get details of a mailing list

Input

ParameterTypeRequiredDescription
apiKeystringYesMailgun API key
addressstringYesMailing list address to retrieve (e.g., newsletter@mg.example.com)

Output

ParameterTypeDescription
successbooleanWhether the request was successful
listjsonMailing list details

mailgun_add_list_member

Add a member to a mailing list

Input

ParameterTypeRequiredDescription
apiKeystringYesMailgun API key
listAddressstringYesMailing list address (e.g., list@mg.example.com)
addressstringYesMember email address to add (e.g., user@example.com)
namestringNoMember name
varsstringNoJSON string of custom variables
subscribedbooleanNoWhether the member is subscribed

Output

ParameterTypeDescription
successbooleanWhether the member was added successfully
messagestringResponse message
memberjsonAdded member details

mailgun_list_domains

List all domains for your Mailgun account

Input

ParameterTypeRequiredDescription
apiKeystringYesMailgun API key

Output

ParameterTypeDescription
successbooleanWhether the request was successful
totalCountnumberTotal number of domains
itemsjsonArray of domain objects

mailgun_get_domain

Get details of a specific domain

Input

ParameterTypeRequiredDescription
apiKeystringYesMailgun API key
domainstringYesDomain name to retrieve details for (e.g., mg.example.com)

Output

ParameterTypeDescription
successbooleanWhether the request was successful
domainjsonDomain details

On this page