Apparently, no one uses SMTPClient because there is a bug that has lingered
for ages. Using it raises the following Squeak error message: TelnetProtocolError: 501 malformed auth input (#5.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) Perhaps it will be fixed in the next Squeak release? It's probably very low priority as I seem to be the only person who cares about it. Regards, Richard |
Hi Richard,
Thanks for reporting. I don't think the network packages are maintained by somebody... but any bug in the image should be addressed. I suggest to report the problem and your fix on Mantis. This will increase the chance that it gets fixed eventually. Cheers, Adrian On Nov 14, 2007, at 22:06 , Richard Eng wrote: > Apparently, no one uses SMTPClient because there is a bug that has > lingered > for ages. Using it raises the following Squeak error message: > > TelnetProtocolError: 501 malformed auth input (#5.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) > > Perhaps it will be fixed in the next Squeak release? It's probably > very low > priority as I seem to be the only person who cares about it. > > Regards, > Richard > > > |
In reply to this post by Richard Eng
El 11/14/07 6:06 PM, "Richard Eng" <[hidden email]> escribió: > Apparently, no one uses SMTPClient because there is a bug that has lingered > for ages. Using it raises the following Squeak error message: > > TelnetProtocolError: 501 malformed auth input (#5.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) > > Perhaps it will be fixed in the next Squeak release? It's probably very low > priority as I seem to be the only person who cares about it. > > Regards, > Richard Could be fixed in the current release, as we still in beta. You need file a bug report in Mantis. Then another Squeaker review and add some comment about this is a good fix. A test could help to faster pick. Edgar |
Free forum by Nabble | Edit this page |