diff options
| author | viega | 1998-05-30 03:09:21 +0000 |
|---|---|---|
| committer | viega | 1998-05-30 03:09:21 +0000 |
| commit | e606132f1b71ab64f56230cde988115ff6e39160 (patch) | |
| tree | 20b835452cd396f106f33a2ca2c7187387824a98 /Mailman/smtplib.py | |
| parent | c240fc1d45ae3e08f1a402c028a3e573a89a9cbe (diff) | |
| download | mailman-e606132f1b71ab64f56230cde988115ff6e39160.tar.gz mailman-e606132f1b71ab64f56230cde988115ff6e39160.tar.zst mailman-e606132f1b71ab64f56230cde988115ff6e39160.zip | |
Diffstat (limited to 'Mailman/smtplib.py')
| -rw-r--r-- | Mailman/smtplib.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Mailman/smtplib.py b/Mailman/smtplib.py index 7d914975d..0036c8a00 100644 --- a/Mailman/smtplib.py +++ b/Mailman/smtplib.py @@ -27,7 +27,7 @@ # >>> s.quit() from socket import * -import string +import string, types SMTP_PORT = 25 @@ -66,8 +66,13 @@ class SmtpConnection: lines = string.split(text, '\n') self._sock.send('MAIL FROM: %s\r\n' % frm) self.getresp() - self._sock.send('RCPT TO: %s\r\n' % to) - self.getresp() + if type(to) == types.StringType: + self._sock.send('RCPT TO: %s\r\n' % to) + self.getresp() + else: + for item in to: + self._sock.send('RCPT TO: %s\r\n' % item) + self.getresp() self._sock.send('DATA\r\n') self.getresp() if headers: |
