On 18 Feb 2012, at 18:01, Jimmie Houchin wrote:
Would it be possible to see an example of what is required and how I would send an email from Pharo through GMail's smtp servers?
All of my email is through GMail, and I would love to be able to send messages from my images. But I haven't seen or learned how, despite seeing messages like this in any COTDC messages.
"p.s. this message was sent from a pharo image. Did you know you could easily do that?!"
I have searched the archives and haven't found the answer of how to do that.
Since GMail requires TLS3 or SSL, I would have to be able to handle that as well. http://support.google.com/mail/bin/answer.py?hl=en&answer=13287
Any help, insight and wisdom greatly appreciated.
http://forum.world.st/ZdcSecurePOP3Client-and-ZdcSecureSMTPClient-td4172388.... "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. HTH, Sven -- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill