[Seaside] How to email
boris at deepcovelabs.com
Tue Aug 14 15:08:17 UTC 2007
Silly question, but did you try it without using authentication at all? Some SMTP servers don't use it, but rather relay everything from the IP block(s) that belong to the ISP.
(Sent from a BlackBerry)
----- Original Message -----
From: seaside-bounces at lists.squeakfoundation.org <seaside-bounces at lists.squeakfoundation.org>
To: seaside at lists.squeakfoundation.org <seaside at lists.squeakfoundation.org>
Sent: Tue Aug 14 07:56:33 2007
Subject: Re: [Seaside] How to email
Here's a little blogging about it
It looks very useful, but I'm still having problems. There is something
very BASIC that I'm doing wrong, apparently.
Following the blog, I'm using this code fragment:
| username password client |
username := 'richard.eng'.
password := 'Bugaboo'.
client := SMTPClient openOnHostNamed: 'smtp.broadband.rogers.com' port: 25.
client user: username; password: password; login; initiateSession.
client mailFrom: 'richard.eng at rogers.com';
recipient: 'richardeng2005 at hotmail.com';
'Subject: Hello from SMTPClient!
From: richard.eng at rogers.com
To: richardeng2005 at hotmail.com
Sending from SMTPClient!'.
The above chokes at #login. The debugger says:
TelnetProtocolError: 501 malformed auth input (#5.5.4)
Apparently it hits a problem at #checkResponse:
self user ifNil: [^self].
self sendCommand: 'AUTH LOGIN ' , (self encodeString: self user).
do: [ :ex | ex isCommandUnrecognized ifTrue: [^ self] ifFalse: [ex pass]].
self sendCommand: (self encodeString: self password).
I'm using the exact same username and password as in Evolution (with
which I'm sending this email). So why is it complaining about
"malformed auth input"???
One thought I had was that the SMTP server authenticates against the
POP server at Rogers, I believe (I could be wrong). Maybe this is the
Seaside mailing list
Seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside