Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mailgun Agent #2225

Open
wants to merge 2 commits into
base: nightly
Choose a base branch
from

Conversation

evandcoleman
Copy link

Description

Adds a notification agent for Mailgun using the Mailgun API and allows using it for newsletters

Adds the ability to:

  • Send to all email addresses in a Mailgun mailing list
  • Enable open and click tracking
  • Add tags to emails

Screenshot

image
image

Type of Change

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the docstring for new or existing methods

Copy link
Contributor

@JonnyWong16 JonnyWong16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also write up the Mailgun instructions to add to the wiki?

https://github.com/Tautulli/Tautulli/wiki/Notification-Agents-Guide

self.NAME, "Missing recipient email address")
return False

# Get emails addresses from Mailgun API
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Factor out getting address into a separate method. agent_notify should only handle sending the email.

{'label': 'BCC Recipients',
'value': self.config['bcc_recipients'],
'name': 'mailgun_bcc_recipients',
'description': 'Add users to Bcc instead of To.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'description': 'Add users to Bcc instead of To.',
'description': 'Add users to BCC instead of To.',

Comment on lines +2321 to +2326
{'label': 'API Key',
'value': self.config['api_key'],
'name': 'mailgun_api_key',
'description': 'API key for Mailgun.',
'input_type': 'password'
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move API key up so it is the first setting.

Suggested change
{'label': 'API Key',
'value': self.config['api_key'],
'name': 'mailgun_api_key',
'description': 'API key for Mailgun.',
'input_type': 'password'
},
{'label': 'Mailgun API Key',
'value': self.config['api_key'],
'name': 'mailgun_api_key',
'description': 'Your Mailgun API key.',
'input_type': 'token'
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants