def _send_email(self, check):
        check_name = check['check']
        hostname = check['hostname']
        if check['status'] is True:
            status = 'UP'
        else:
            status = 'DOWN'
        subject = "[stalker] %s on %s is %s" % (check_name, hostname, status)
        data = {"from": "Stalker <%s>" % self.from_addr,
                "to": self.recipients,
                "subject": subject,
                "text": "%s" % check}
        headers = {
            'Authorization': self.basic_auth_creds % 'Basic %s',
            'Content-Type': 'application/x-www-form-urlencoded'
        }
        try:
            post_data = urllib.urlencode(data)
            req = urllib2.Request(self.url, post_data, headers)
            response = urllib2.urlopen(req)
            result = response.read()
            response.close()
            self.logger.info('Mailgun: %s' % result)
            return True
        except Exception:
            self.logger.exception('Mailgun notification error.')
            return False
dataset/ETHPy150Open pandemicsyn/stalker/stalkeragent/stalkeragent/stalker_notifications.py/Mailgun._send_email/swapped operands of `%`