summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJefferson Stachelski <jstachel@thoughtworks.com>2015-01-30 19:19:38 -0200
committerJefferson Stachelski <jstachel@thoughtworks.com>2015-01-30 19:20:53 -0200
commitf978f26ac1b431a4418bd4e8ed9ed9a555520356 (patch)
treea750f452fc75c5956c7415e2d1be2668961bd6e8
parent169855137edf126e22300c1beac9939ee59a6129 (diff)
#236 Fixed variable and method names
-rw-r--r--service/pixelated/adapter/services/mail_sender.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/pixelated/adapter/services/mail_sender.py b/service/pixelated/adapter/services/mail_sender.py
index f4954514..d29b7d49 100644
--- a/service/pixelated/adapter/services/mail_sender.py
+++ b/service/pixelated/adapter/services/mail_sender.py
@@ -33,19 +33,19 @@ class MailSender():
clean_mail_list = []
for mail_address in mail_list:
if "<" in mail_address:
- match = re.search(r'<(.*)', mail_address)
- clean_mail_list.append(match.group(1).strip('>'))
+ match = re.search(r'<(.*)>', mail_address)
+ clean_mail_list.append(match.group(1))
else:
clean_mail_list.append(mail_address)
return self.recepients_normalizer(clean_mail_list)
def sendmail(self, mail):
recipients = flatten([mail.to, mail.cc, mail.bcc])
- normalized_recepients = get_email_addresses(recipients)
+ normalized_recepients = self.get_email_addresses(recipients)
resultDeferred = Deferred()
senderFactory = SMTPSenderFactory(
fromEmail=self.account_email_address,
- toEmail=normalized_recipients,
+ toEmail=normalized_recepients,
file=StringIO(mail.to_smtp_format()),
deferred=resultDeferred)