Hi Dan, Authentication seems supported. You can send messages #user: and #password: to a SMTPClient instance. The methods are defined in the indirect superclass ProtocolClient. Something along the lines of smtpClient := SMPTClient openOnHostNamed: serverName. smtpClient user: 'login'; password: 'secret'. [ smtpClient initiateSession. smtpClient mailFrom: fromAddress to: recipientList text: messageText. smtpClient quit ] ensure: [smtpClient close] should work (not tested). HTH, Adrian BTW, when you manage to make it work and would like to help a bit, please write a short instruction that we can put into the class SMTPClient or the help system so that others have a faster start. On Nov 29, 2010, at 12:35 , Daniel Klein wrote:
Yes, my smtp server requires authentication, but I see nothing in Pharo that allows me to enter a password like it does for "POP3Client example".
Dan
-----Original Message----- From: pharo-users-bounces@lists.gforge.inria.fr [mailto:pharo-users-bounces@lists.gforge.inria.fr] On Behalf Of Adrian Lienhard Sent: Monday, November 29, 2010 4:54 To: A friendly place where any question about pharo is welcome Subject: Re: [Pharo-users] SMTPClient issue
It works for me... I changed the from, to, and the smtp server.
What does the error say? Maybe your smpt server requires you to authenticate?
Cheers, Adrian
On Nov 29, 2010, at 01:28 , Daniel Klein wrote:
I can't seem to get:
SMTPClient example
to work.
I changed the 'deliverMailFrom:', 'to:' and 'usingServer:' arguments to valid entries but I keep getting a 'TelnetProtocolError'.
Could someone else please test this out cos I think it's broken. Please prove me wrong ;-)
I'm using:
Pharo-1.1.1-- Latest update: #11414
on Windows XP Pro SP3.
Dan