1

Resolved

501 Parameter size is not recognised

description

The following python 2.5 script:
 
import smtplib
s=smtplib.SMTP('localhost',25)
tolist=['one@one.org'] msg=''' From: Me@my.org Subject: testin'...
 
This is a test '''
s.sendmail("me@my.org",tolist,msg) s.quit()     Generates the following smtp4dev log:
 
220 localhost smtp4dev ready
ehlo [10.0.5.33]
250-Nice to meet you.
250-8BITMIME
250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250-AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 SIZE
mail FROM:me@my.org size=53
501 Parameter size is not recognised
rset
 
 
All options in smtp4dev are defaults.

comments

rnwood wrote Sep 10, 2010 at 10:05 PM

Doh! looks like I've accidentally made the parameter names case sensitive and it will currently only accept them in upper case e.g. SIZE.
I will fix this shortly.

wrote Nov 15, 2010 at 8:21 PM

chiptip wrote Jan 25, 2011 at 4:12 PM

rnwood,

This ticket is marked as fixed, do you know where I can get the updated version?

thanks,
Sonny

wrote May 9, 2011 at 1:37 PM

jlafay wrote Aug 2, 2011 at 2:15 AM

What's the deal? I got latest stable today and it still has this issue. I would love to be able to debug my python code with this app but can't right now.

rnwood wrote Aug 2, 2011 at 9:40 PM

** Closed by rnwood 09/05/2011 05:37

rnwood wrote Aug 2, 2011 at 9:40 PM

rnwood wrote Aug 2, 2011 at 9:55 PM

See 2.0.8.

valmagro wrote Oct 3, 2011 at 12:51 PM

rnwood,

The same goes for commands, not only the parameters. Check this log, please:

auth cram-md5
504 Specified AUTH mechanism not supported

It is expecting CRAM-MD5, not cram-md5!

thanks,
Vicente

wrote Feb 22, 2013 at 1:30 AM

wrote May 16, 2013 at 12:42 PM

wrote May 16, 2013 at 12:42 PM

wrote Jun 14, 2013 at 8:31 AM