我想用CentOS機器中的生肖在Pharo中用gmail smtp發送郵件。我收到以下錯誤。在Pharo smalltalk中發送的生肖郵件
"SSL/TLS plugin initialization failed. VM missing plugin? "
我已經下載並把「so.SqueakSSL」在虛擬機目錄與其他.so文件一起並用「搭配chmod 777 so.SqueakSSL」。但仍然顯示錯誤。我錯過了什麼?工作區的代碼是:
Gofer it
squeaksource: 'Zodiac';
package: 'Zodiac-Core';
package: 'Zodiac-Tests';
package: 'Zodiac-Extra';
load.
"Load extra Zinc support for Zodiac"
Gofer it
squeaksource: 'ZincHTTPComponents';
package: 'Zinc-Zodiac';
load.
| 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: '[email protected]'
password: 'mypassword'
to: '[email protected]'
message: mailMessage.
哪個VM?請確保使用我們[構建服務器]的最新版本(https://ci.lille.inria.fr/pharo/view/Cog/job/Cog-VM/) – camillobruni
請注意,此代碼和答案涉及一個相當老的pharo版本,不再適用於當前版本。 –