Updates:
Status: Closed
Comment #3 on issue 5032 by
[hidden email]: SecurePop3Client
http://code.google.com/p/pharo/issues/detail?id=5032Sven Says (and thus I close this entry as this will be added to Pharo
together with Zodiac)
This week I found some time to finish two small examples,
ZdcSecurePOP3Client and ZdcSecureSMTPClient. These are subclasses from the
POP3Client and SMTPClient already present, but open a ZdcSecureSocketStream
to the POP3/SMTP server and connect it at the SSL level. This means you can
now receive and/or send email securely over SSL, to GMail for example:
"Retrieve (but not delete) your last 5 messages"
ZdcSecurePOP3Client
retrieveMessagesFromGMailAccount: '<your-name>@gmail.com'
password: '<your-password>'
limit: 5.
(Note that you have to enable POP3 access in your GMail account)
"Send a message"
| mailMessage |
mailMessage := MailMessage empty.
mailMessage setField: 'subject' toString: 'ZdcSecureSMTPClient Test'.
mailMessage body: (MIMEDocument contentType: 'text/plain' content: 'This is
test from Pharo Smalltalk').
ZdcSecureSMTPClient
sendUsingGMailAccount: '<your-name>@gmail.com'
password: '<your-password>'
to: '<email-address>'
message: mailMessage
The code is in the 'Zodiac-Extra' package in the
http://www.squeaksource.com/Zodiac repository.
Of course, you also have to install Zodiac and a plugin, see
http://zdc.stfx.eu/ for more details.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker