[Python-bugs-list] [ python-Bugs-504611 ] smtplib - multiple addresses bug

noreply@sourceforge.net noreply@sourceforge.net
Wed, 16 Jan 2002 13:40:28 -0800


Bugs item #504611, was opened at 2002-01-16 13:20
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504611&group_id=5470

Category: Extension Modules
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Sergiusz Pawlowicz (serek)
Assigned to: Nobody/Anonymous (nobody)
Summary: smtplib - multiple addresses bug

Initial Comment:
Example of code:

import smtplib
server = "localhost"
sendit = smtplib.SMTP(server)
sendit.set_debuglevel(1)
sendit.sendmail("ser", "ser, ser, ser, ser", "dupa")
sendit.quit()

Execution:

send: 'ehlo XXX.pl\r\n'
reply: '250-XXX.pl\r\n'
reply: '250-PIPELINING\r\n'
reply: '250-STARTTLS\r\n'
reply: '250 8BITMIME\r\n'
reply: retcode (250); Msg: XXX.pl
PIPELINING
STARTTLS
8BITMIME
send: 'mail FROM:<ser>\r\n'
reply: '250 ok\r\n'
reply: retcode (250); Msg: ok
send: 'rcpt TO:<ser>\r\n'
reply: '250 ok\r\n'
reply: retcode (250); Msg: ok
send: 'data\r\n'
reply: '354 go ahead\r\n'
reply: retcode (354); Msg: go ahead
data: (354, 'go ahead')
send: 'dupa\r\n.\r\n'
reply: '250 ok 1011215867 qp 29541\r\n'
reply: retcode (250); Msg: ok 1011215867 qp 29541
data: (250, 'ok 1011215867 qp 29541')
send: 'quit\r\n'
reply: '221 XXX.pl\r\n'
reply: retcode (221); Msg: XXX.pl

It sends the letter only to first 'ser' address! :-(
[and omit next three].

Of course the same situation is when I specify
full addresses, eg. ser@XXX.pl


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-01-16 13:40

Message:
Logged In: NO 

Shouldn't you be using ["ser", "ser", "ser", "ser"] as the 
destination instead of "ser, ser, ser, ser"?

--Guido (not logged in)

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504611&group_id=5470