Subversion Repositories SmartDukaan

Rev

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

Rev 7546 Rev 7550
Line 81... Line 81...
81
            if document != bin(0):
81
            if document != bin(0):
82
                msg.attach(self.get_attachment_part(document, mail.source))
82
                msg.attach(self.get_attachment_part(document, mail.source))
83
            
83
            
84
        try:
84
        try:
85
            self.setMailServerAndPassword(mail)
85
            self.setMailServerAndPassword(mail)
86
            rs = self.mailServer.sendmail(self.password, mail.emailTo + mail.cc + mail.bcc, 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.to, msg.as_string())
90
            rs = self.mailServer.sendmail(self.password, mail.to, msg.as_string())
91
        
91