Subversion Repositories SmartDukaan

Rev

Rev 8065 | Rev 8069 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8065 Rev 8066
Line 85... Line 85...
85
            self.setMailServerAndPassword(mail)
85
            self.setMailServerAndPassword(mail)
86
            rs = self.mailServer.sendmail(self.password, mail.emailTo + mail.cc + mail.bcc + ['backup@saholic.com'], msg.as_string())
86
            rs = self.mailServer.sendmail(self.password, mail.emailTo + mail.cc + mail.bcc + ['backup@saholic.com'], msg.as_string())
87
        except smtplib.SMTPServerDisconnected as e:
87
        except smtplib.SMTPServerDisconnected as e:
88
            print 'Server Disconnected at', time.time()
88
            print 'Server Disconnected at', time.time()
89
            self.authenticate()
89
            self.authenticate()
90
            rs = self.mailServer.sendmail(self.password, mail.emailTo, msg.as_string())
90
            rs = self.mailServer.sendmail(self.password, mail.emailTo + mail.cc + mail.bcc + ['backup@saholic.com'], msg.as_string())
91
        
91
        
92
        print msg['To']
92
        print msg['To']
93
        # Should be mailServer.quit(), but that crashes...
93
        # Should be mailServer.quit(), but that crashes...
94
        return rs
94
        return rs
95
 
95