Subversion Repositories SmartDukaan

Rev

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

Rev 1566 Rev 3086
Line 39... Line 39...
39
 
39
 
40
    def send(self):
40
    def send(self):
41
        print "Despatch stared at ", time.time()
41
        print "Despatch stared at ", time.time()
42
        helper_client = HelperClient().get_client()
42
        helper_client = HelperClient().get_client()
43
        
43
        
44
        emails_to_be_dispatched = helper_client.getEmailsToBeSent("TransactionInfo")
44
        emails_to_be_dispatched = helper_client.getEmailsToBeSent()
45
        print len(emails_to_be_dispatched)
45
        print len(emails_to_be_dispatched)
46
        
46
        
47
        for email in emails_to_be_dispatched:
47
        for email in emails_to_be_dispatched:
48
            mail = Mail(email.emailTo, email.subject, email.body, None, None, None)
48
            mail = Mail(email.emailTo, email.subject, email.body, None, None, None)
49
            send_result = self.sendMail(mail)
49
            send_result = self.sendMail(mail)