Mantis - Squeak
Viewing Issue Advanced Details
6767 Network minor always 11-14-07 22:06 03-05-09 10:36
richardeng2005  
gokr  
normal  
assigned 3.9  
fixed  
none    
none  
0006767: SMTPClient bug
I get the following error message:

TelnetProtocolError: 501 malformed auth input (0000005.5.4)

Here's my test Squeak method:

mailTo: userAddress subject: subject text: text
    | client |
    client := SMTPClient openOnHostNamed: 'host_mail_server' port: 25.
    client user: 'my_user_id'; password: 'my_password'; login; initiateSession.
    client mailFrom: 'my_email_address';
        recipient: userAddress;
        data: text.
    client quit.

I managed to find a fix. In the #encodeString: method of the #SMTPClient in the Network-Protocols package, amend the last statement to read:

    ^ str truncateTo: (str size - 2)
duplicate of 0006843closed gokr Trivial fix in SMTPClient>>encodeString: so that it does not include NULL characters 

Notes
(0013006)
gokr   
03-05-09 10:36   
6843 has better fix.