'Send a notification that an subtitle was downloaded
ep_name: The name of the episode that was downloaded
lang: Subtitle language wanted'

def notify_subtitle_download(self, ep_name, lang, title=u'Downloaded    subtitle:'):

    ep_name = ss(ep_name)
    if (sickbeard.USE_EMAIL and sickbeard.EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD):
        show = self._parseEp(ep_name)
        to = self._generate_recipients(show)
        if (not to):
            logger.log(u'Skipping    email    notify    because    there    are    no    configured    recipients', logger.DEBUG)
        else:
            try:
                msg = MIMEMultipart(u'alternative')
                msg.attach(MIMEText(u'<body    style="font-family:Helvetica,    Arial,    sans-serif;"><h3>SickRage    Notification    -    Subtitle    Downloaded</h3><p>Show:    <b>{0}</b></p><p>Episode    Number:    <b>{1}</b></p><p>Episode:    <b>{2}</b></p></p><p>Language:    <b>{3}</b></p><h5    style="margin-top:    2.5em;    padding:    .7em    0;    color:    #777;    border-top:    #BBB    solid    1px;">Powered    by    SickRage.</h5></body>'.format(show[0], show[1], show[2], lang), u'html'))
            except Exception:
                try:
                    msg = MIMEText(((ep_name + u':    ') + lang))
                except Exception:
                    msg = MIMEText(u'Episode    Subtitle    Downloaded')
            if sickbeard.EMAIL_SUBJECT:
                msg['Subject'] = (u'[ST]    ' + sickbeard.EMAIL_SUBJECT)
            else:
                msg['Subject'] = ((lang + u'    Subtitle    Downloaded:    ') + ep_name)
            msg['From'] = sickbeard.EMAIL_FROM
            msg['To'] = u','.join(to)
            if self._sendmail(sickbeard.EMAIL_HOST, sickbeard.EMAIL_PORT, sickbeard.EMAIL_FROM, sickbeard.EMAIL_TLS, sickbeard.EMAIL_USER, sickbeard.EMAIL_PASSWORD, to, msg):
                logger.log(u'Download    notification    sent    to    [{0}]    for    "{1}"'.format(to, ep_name), logger.DEBUG)
            else:
                logger.log(u'Download    notification    error:    {0}'.format(self.last_err), logger.WARNING)
