'Send a mail to the recipient.'

def send_message(self, message='', **kwargs):

    from pymailgunner import MailgunError
    subject = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
    data = kwargs.get(ATTR_DATA)
    files = (data.get(ATTR_IMAGES) if data else None)
    try:
        if (self._client is None):
            self.initialize_client()
        resp = self._client.send_mail(sender=self._sender, to=self._recipient, subject=subject, text=message, files=files)
        _LOGGER.debug('Message    sent:    %s', resp)
    except MailgunError as mailgun_error:
        _LOGGER.exception('Failed    to    send    message:    %s', mailgun_error)
