That&#39;s pretty funny, my version of SMTPClient doesn&#39;t implement the method openOnHostNamed:, the closest thing is openOnHost:port: in TelnetProtocolClient, a superclass of SMTPClient, but using -for example- openOnHost: <a href="http://smtp.gmail.com">smtp.gmail.com</a> port: 465 doesn&#39;t work... fires up an error message saying that a primitive has failed, and I&#39;m really unable to debug what&#39;s wrong there...<br>

<br>I tried connecting via telnet, the hostname and port are correct. I tried sending the port number as a string and number, both fail. I also tried passing it the IP address in case the name resolving wasn&#39;t working, but it results in the same.<br>

<br>I&#39;m afraid I&#39;m gonna give up and just use sendmail, tho it bothers me a lot to have to add yet another step to the deployment process... :(<br><br>Sorry for being such a pain!<br><br><div class="gmail_quote">
2010/5/5 Andreas Raab <span dir="ltr">&lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Disclaimer: I can only speak for Squeak but I suspect the situation is the same for Pharo and the following should work.<br>


<br>
First thing you should do is to make sure you actually pass your credentials to SMTPClient. The example you&#39;ve used doesn&#39;t do that, try this instead:<br>
<br>
        smtp := SMTPClient new.<br>
        smtp user: &#39;&lt;username&gt;&#39;.<br>
        smtp password: &#39;&lt;password&gt;&#39;.<br>
        [smtp openOnHostNamed: &#39;&lt;hostname&gt;&#39;.<br>
        smtp mailFrom: &#39;<a href="mailto:sender@domain.com" target="_blank">sender@domain.com</a>&#39;<br>
                to: &#39;<a href="mailto:rcvr@domain.com" target="_blank">rcvr@domain.com</a>&#39;<br>
                text: &#39;Hello from Squeak&#39;&#39;s SMTPClient&#39;.<br>
        smtp quit] ensure:[smtp close].<br>
<br>
This *should* work if you have the relevant patches for all but the most paranoid servers. There&#39;s a chance though that you will be rejected for reasons of &#39;NetNameResolver localHostName&#39; returning &#39;localhost&#39; or &#39;127.0.0.1&#39; and we&#39;ve found there are some SMTP servers which don&#39;t like that Unixism (the server response should indicate that).<br>


<br>
If you run into that situation you&#39;ll have to hack SMTPClient to provide a custom hostname that you need to find somewhere. Can&#39;t help you there - what we&#39;re doing in this situation is so ugly that I&#39;m not even going to tell you :-) Hopefully just providing credentials is enough.<br>


<br>
Cheers,<br>
  -Andreas<div class="im"><br>
<br>
On 5/4/2010 11:53 PM, AxiNat wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
Okay, this is what I found so far (example in SMTPClient):<br>
<br></div>
self deliverMailFrom: &#39;<a href="mailto:m.rueger@acm.org" target="_blank">m.rueger@acm.org</a> &lt;mailto:<a href="mailto:m.rueger@acm.org" target="_blank">m.rueger@acm.org</a>&gt;&#39; to:<br>
#(&#39;<a href="mailto:m.rueger@acm.org" target="_blank">m.rueger@acm.org</a> &lt;mailto:<a href="mailto:m.rueger@acm.org" target="_blank">m.rueger@acm.org</a>&gt;&#39;) text:<div class="im"><br>
&#39;Subject: this is a test<br>
<br>
Hello from Pharo!<br></div>
&#39;    usingServer: &#39;<a href="http://smtp.concentric.net" target="_blank">smtp.concentric.net</a> &lt;<a href="http://smtp.concentric.net" target="_blank">http://smtp.concentric.net</a>&gt;&#39;<div class="im"><br>


<br>
I tried that using my own smtp server, but it requires authentication<br>
and doesn&#39;t let the e-mail go through. If I try it with a local sendmail<br>
daemon, my guess is that the message is gonna end up in the spam folder<br>
of most people... I remember at university we had this exercises<br>
consisting on sending e-mails through sendmail and straight via telnet,<br>
and they would end up classified as spam, I&#39;m not sure whether this is<br>
the same case tho...<br>
<br>
Does someone have further information on that patch that allows<br>
authentication?<br>
<br>
Thanks!<br>
<br></div>
2010/5/5 Lukas Renggli &lt;<a href="mailto:renggli@gmail.com" target="_blank">renggli@gmail.com</a> &lt;mailto:<a href="mailto:renggli@gmail.com" target="_blank">renggli@gmail.com</a>&gt;&gt;<div class="im"><br>
<br>
    Not necessarily, you can connect to any SMTP server. I am not sure if<br>
    authentication is built in nowadays, but there was a patch floating<br>
    around that would add it.<br>
<br>
    Lukas<br>
<br>
    On 5 May 2010 08:19, AxiNat &lt;<a href="mailto:tibabenfortlapalanca@gmail.com" target="_blank">tibabenfortlapalanca@gmail.com</a><br></div><div class="im">
    &lt;mailto:<a href="mailto:tibabenfortlapalanca@gmail.com" target="_blank">tibabenfortlapalanca@gmail.com</a>&gt;&gt; wrote:<br>
     &gt; I&#39;m on Pharo 1.0, been checking SMTPClient, but it still looks<br>
    like it needs<br>
     &gt; sendmail to be running in the system, or I may totally be<br>
    missunderstanding<br>
     &gt; the way it works, which is a very plausible option possibility...<br>
     &gt;<br></div>
     &gt; 2010/5/5 Lukas Renggli &lt;<a href="mailto:renggli@gmail.com" target="_blank">renggli@gmail.com</a> &lt;mailto:<a href="mailto:renggli@gmail.com" target="_blank">renggli@gmail.com</a>&gt;&gt;<div class="im"><br>


     &gt;&gt;<br>
     &gt;&gt; Seaside does not provide an SMTP library, but most Smalltalk<br>
    dialects<br>
     &gt;&gt; do. On which Smalltalk are you?<br>
     &gt;&gt;<br>
     &gt;&gt; Lukas<br>
     &gt;&gt;<br>
     &gt;&gt; On 5 May 2010 07:21, AxiNat &lt;<a href="mailto:tibabenfortlapalanca@gmail.com" target="_blank">tibabenfortlapalanca@gmail.com</a><br></div><div class="im">
    &lt;mailto:<a href="mailto:tibabenfortlapalanca@gmail.com" target="_blank">tibabenfortlapalanca@gmail.com</a>&gt;&gt; wrote:<br>
     &gt;&gt; &gt; Hi all,<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; I&#39;d like to know what&#39;s the best way to send e-mails from a<br>
    seaside app,<br>
     &gt;&gt; &gt; so<br>
     &gt;&gt; &gt; far I&#39;ve read about some Smalltalk SMTP library, using unix<br>
    sendmail or<br>
     &gt;&gt; &gt; sendEmail.<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; sendEmail sounds like the easiest method, but I don&#39;t like<br>
    depending on<br>
     &gt;&gt; &gt; external tools...<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; Any suggestions, tips? Any howtos around?<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; Thanks!<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; Bernat Romagosa.<br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt; _______________________________________________<br>
     &gt;&gt; &gt; seaside mailing list<br>
     &gt;&gt; &gt; <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br></div>
    &lt;mailto:<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>&gt;<div class="im"><br>
     &gt;&gt; &gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
     &gt;&gt; &gt;<br>
     &gt;&gt; &gt;<br>
     &gt;&gt;<br>
     &gt;&gt;<br>
     &gt;&gt;<br>
     &gt;&gt; --<br>
     &gt;&gt; Lukas Renggli<br></div>
     &gt;&gt; <a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a> &lt;<a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a>&gt;<div class="im"><br>
     &gt;&gt; _______________________________________________<br>
     &gt;&gt; seaside mailing list<br>
     &gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br></div>
    &lt;mailto:<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>&gt;<div class="im"><br>
     &gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
     &gt;<br>
     &gt;<br>
     &gt; _______________________________________________<br>
     &gt; seaside mailing list<br>
     &gt; <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br></div>
    &lt;mailto:<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>&gt;<div class="im"><br>
     &gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
     &gt;<br>
     &gt;<br>
<br>
<br>
<br>
    --<br>
    Lukas Renggli<br></div>
    <a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a> &lt;<a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a>&gt;<div class="im"><br>
    _______________________________________________<br>
    seaside mailing list<br>
    <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br></div>
    &lt;mailto:<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>&gt;<div class="im"><br>
    <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></blockquote>
<br><div><div></div><div class="h5">
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>