Skip to content

v1.3.0

Latest

Choose a tag to compare

@leafo leafo released this 22 Sep 23:29
v1.3.0

https://luarocks.org/modules/leafo/mailgun

What's Changed

  • Add region option to client creation, set to "eu" for accounts in Mailgun's EU region
    • Add api_prefix option to override the API base URL
  • Add template and template_vars options to send_email for sending with templates stored in Mailgun
  • Add methods get_logs(params) and each_log(params) for Mailgun's Logs API, the replacement for the Events API
  • Failed requests now return the HTTP status code as a third return value
  • for_domain keeps the webhook_signing_key and API prefix of the original client
  • Escape the address in get_bounce, get_unsubscribe, get_complaint
  • Deprecate get_events and each_event, Mailgun has deprecated the Events API in favor of Logs
  • Deprecate campaigns: create_campaign, get_campaigns, get_or_create_campaign_id and the campaign option to send_email. Use tags instead

Full Changelog: v1.2.0...v1.3.0