'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 = ep_name
    if sickrage.srCore.srConfig.EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD:
        show = self._parseEp(ep_name)
        to = self._generate_recipients(show)
        if (len(to) == 0):
            sickrage.srCore.srLogger.warning(u'Skipping    email    notify    because    there    are    no    configured    recipients')
        else:
            try:
                msg = MIMEMultipart(u'alternative')
                msg.attach(MIMEText(((((((u"<body    style='font-family:Helvetica,    Arial,    sans-serif;'><h3>SiCKRAGE    Notification    -    Subtitle    Downloaded</h3>\n<p>Show:    <b>" + re.search(u'(.+?)    -.+', ep_name).group(1)) + u'</b></p>\n<p>Episode:    <b>') + re.search(u'.+    -    (.+?-.+)    -.+', ep_name).group(1)) + u'</b></p>\n<p>Language:    <b>') + lang) + u"</b></p>\n\n<footer    style='margin-top:    2.5em;    padding:    .7em    0;    color:    #777;    border-top:    #BBB    solid    1px;'>Powered    by    SiCKRAGE.</footer></body>"), u'html'))
            except:
                try:
                    msg = MIMEText(((ep_name + u':    ') + lang))
                except:
                    msg = MIMEText(u'Episode    Subtitle    Downloaded')
            msg[u'Subject'] = ((lang + u'    Subtitle    Downloaded:    ') + ep_name)
            msg[u'From'] = sickrage.srCore.srConfig.EMAIL_FROM
            msg[u'To'] = u','.join(to)
            if self._sendmail(sickrage.srCore.srConfig.EMAIL_HOST, sickrage.srCore.srConfig.EMAIL_PORT, sickrage.srCore.srConfig.EMAIL_FROM, sickrage.srCore.srConfig.EMAIL_TLS, sickrage.srCore.srConfig.EMAIL_USER, sickrage.srCore.srConfig.EMAIL_PASSWORD, to, msg):
                sickrage.srCore.srLogger.debug((u"Download    notification    sent    to    [%s]    for    '%s'" % (to, ep_name)))
            else:
                sickrage.srCore.srLogger.error((u'Download    notification    ERROR:    %s' % self.last_err))
