'Send a notification that SickRage was logged into remotely
ipaddress: The ip SickRage was logged into from'

def notify_login(self, ipaddress=u''):

    if sickbeard.USE_EMAIL:
        to = self._generate_recipients(None)
        if (not len(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    -    Remote    Login</h3><br><p>New    login    from    IP:    <a    href="http://geomaplookup.net/?ip={0}">{0}</a>.<br><br><footer    style="margin-top:    2.5em;    padding:    .7em    0;    color:    #777;    border-top:    #BBB    solid    1px;">Powered    by    SickRage.</footer></body>'.format(ipaddress), u'html'))
            except Exception:
                try:
                    msg = MIMEText(ipaddress)
                except Exception:
                    msg = MIMEText(u'SickRage    Remote    Login')
            msg['Subject'] = u'New    Login    from    IP:    {0}'.format(ipaddress)
            msg['From'] = sickbeard.EMAIL_FROM
            msg['To'] = u','.join(to)
            msg['Date'] = formatdate(localtime=True)
            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'Login    notification    sent    to    [{0}]'.format(to), logger.DEBUG)
            else:
                logger.log(u'Login    notification    error:    {0}'.format(self.last_err), logger.WARNING)
