Subversion Repositories SmartDukaan

Rev

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

Rev 5194 Rev 5197
Line 77... Line 77...
77
        print len(emails_to_be_dispatched)
77
        print len(emails_to_be_dispatched)
78
        
78
        
79
        for email in emails_to_be_dispatched:
79
        for email in emails_to_be_dispatched:
80
            toList = []
80
            toList = []
81
            for to in email.emailTo.split(';') :
81
            for to in email.emailTo.split(';') :
-
 
82
                if to.strip() :
82
                toList.append(to.strip())
83
                    toList.append(to.strip())
83
            mail = Mail( toList, email.subject, email.body, None, None, None)
84
            mail = Mail( toList, email.subject, email.body, None, None, None)
84
            
85
            
85
            try:
86
            try:
86
                send_result = self.sendMail(mail)
87
                send_result = self.sendMail(mail)
87
            except Exception as e:
88
            except Exception as e: