@@ -101,10 +101,10 @@ def _get_var_from_header_line(line):
101101 return match .group (1 ).strip ().lower (), match .group (2 ).strip ()
102102
103103
104- def _cleanup_mail_addresses (receipients ):
105- if isinstance (receipients , list ):
106- receipients = ',' .join (receipients )
107- rcpt = re .split (r'\s*[,;\r\n]\s*' , receipients .lower ())
104+ def _cleanup_mail_addresses (recipients ):
105+ if isinstance (recipients , list ):
106+ recipients = ',' .join (recipients )
107+ rcpt = re .split (r'\s*[,;\r\n]\s*' , recipients .lower ())
108108 return [str (r ) for r in sorted (set (rcpt )) if r .strip ()]
109109
110110#
@@ -215,7 +215,7 @@ def get_sender(self):
215215
216216 def set_to (self , to ):
217217 """
218- Replaces the current list of receipients in the 'to' field by
218+ Replaces the current list of recipients in the 'to' field by
219219 the given value. The value may be one of the following:
220220
221221 - A list of strings (email addresses).
@@ -229,7 +229,7 @@ def set_to(self, to):
229229
230230 def add_to (self , to ):
231231 """
232- Adds the given list of receipients to the 'to' field.
232+ Adds the given list of recipients to the 'to' field.
233233 Accepts the same argument types as set_to().
234234
235235 :type to: string|list(string)
@@ -305,12 +305,12 @@ def get_bcc(self):
305305 """
306306 return self .bcc
307307
308- def get_receipients (self ):
308+ def get_recipients (self ):
309309 """
310- Returns a list of all receipients (to, cc, and bcc).
310+ Returns a list of all recipients (to, cc, and bcc).
311311
312312 :rtype: list(string)
313- :return: The email addresses of all receipients .
313+ :return: The email addresses of all recipients .
314314 """
315315 return self .get_to () + self .get_cc () + self .get_bcc ()
316316
@@ -469,7 +469,7 @@ def send(mail, server='localhost'):
469469 :param server: The address of the mailserver.
470470 """
471471 sender = mail .get_sender ()
472- rcpt = mail .get_receipients ()
472+ rcpt = mail .get_recipients ()
473473 session = smtplib .SMTP (server )
474474 message = MIMEMultipart ()
475475 message ['Subject' ] = mail .get_subject ()
0 commit comments