SMTPClient and SSL

Richard Eng richard.eng at rogers.com
Thu Dec 13 01:10:32 UTC 2007


Sorry, you're right. A typo--I meant "email server".

But I'm not sure you understand what I'm trying to do. *All* I want to do is
to use SMTPClient to *send* an email (via something like Gmail). I *don't*
care to fetch email through POP3.

So, SMTPClient *is* the correct class/protocol.  :-)

Do I need to use stunnel with SMTPClient? If so, how?

Thanks.

Regards,
Richard

-------
Hi!

> I have a question about SMTPClient:
>
> Can it negotiate with a SSL-enabled web server, such as Gmail?

No. :) Eh... "web server" is not the right word here and SMTPClient is
also the wrong class/protocol.

To *fetch* email you need to use POP3 and yes, google tells me that gmail
only offers POP3S - which is regular POP3 wrapped in SSL.

But you can wrap it outside of Squeak using stunnel. Run stunnel locally
listening on port xxx tunneling it to gmail:995. Then you use *POP3Client*
and connect to localhost on port xxx.

See for example: http://www.engelassociates.net/email.html

regards, Göran





More information about the Squeak-dev mailing list