<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [Seaside] How to email</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>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.<BR>
<BR>
Cheers!<BR>
<BR>
-Boris<BR>
(Sent from a BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
To: seaside@lists.squeakfoundation.org &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Tue Aug 14 07:56:33 2007<BR>
Subject: Re: [Seaside] How to email<BR>
<BR>
Here's a little blogging about it<BR>
<BR>
<A HREF="http://blog.saush.com/?p=199">http://blog.saush.com/?p=199</A><BR>
<BR>
Ramon Leon<BR>
<BR>
-------------<BR>
<BR>
It looks very useful, but I'm still having problems. There is something<BR>
very BASIC that I'm doing wrong, apparently.<BR>
<BR>
Following the blog, I'm using this code fragment:<BR>
<BR>
| username password client |<BR>
username := 'richard.eng'.<BR>
password := 'Bugaboo'.<BR>
client := SMTPClient openOnHostNamed: 'smtp.broadband.rogers.com' port: 25.<BR>
client user: username; password: password; login; initiateSession.<BR>
client mailFrom: 'richard.eng@rogers.com';<BR>
&nbsp; recipient: 'richardeng2005@hotmail.com';<BR>
&nbsp; data:<BR>
'Subject: Hello from SMTPClient!<BR>
From: richard.eng@rogers.com<BR>
To: richardeng2005@hotmail.com<BR>
Sending from SMTPClient!'.<BR>
client quit.<BR>
<BR>
<BR>
The above chokes at #login. The debugger says:<BR>
<BR>
TelnetProtocolError: 501 malformed auth input (#5.5.4)<BR>
<BR>
Apparently it hits a problem at #checkResponse:<BR>
<BR>
login<BR>
&nbsp; self user ifNil: [^self].<BR>
&nbsp; self sendCommand: 'AUTH LOGIN ' , (self encodeString: self user).<BR>
&nbsp; [self checkResponse]<BR>
&nbsp;&nbsp;&nbsp; on: TelnetProtocolError<BR>
&nbsp;&nbsp;&nbsp; do: [ :ex | ex isCommandUnrecognized ifTrue: [^ self] ifFalse: [ex pass]].<BR>
&nbsp; self sendCommand: (self encodeString: self password).<BR>
&nbsp; self checkResponse<BR>
<BR>
<BR>
I'm using the exact same username and password as in Evolution (with<BR>
which I'm sending this email). So why is it complaining about<BR>
&quot;malformed auth input&quot;???<BR>
<BR>
One thought I had was that the SMTP server authenticates against the<BR>
POP server at Rogers, I believe (I could be wrong). Maybe this is the<BR>
problem?<BR>
<BR>
Regards,<BR>
Richard<BR>
<BR>
_______________________________________________<BR>
Seaside mailing list<BR>
Seaside@lists.squeakfoundation.org<BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
</FONT>
</P>

</BODY>
</HTML>