<s> from django . core . mail . backends . base import BaseEmailBackend <EOL> from mailer . models import Message <EOL> class DbBackend ( BaseEmailBackend ) : <EOL> def send_messages ( self , email_messages ) : <EOL> num_sent = <NUM_LIT:0> <EOL> for email in email_messages : <EOL> msg = Message ( ) <EOL> msg . email = email <EOL> msg . save ( ) <EOL> num_sent += <NUM_LIT:1> <EOL> return num_sent </s>
