2013-01-18 101 views
2
| message sender recipients | 
    message := 'From: Me <[email protected]> 
    To: You <[email protected]> 
    Subject: Simple Mail from pharo 

    This is a test mail'. 
    sender := '[email protected]'. 
    recipients := #('[email protected]'). 
SMTPClient 
deliverMailFrom: sender 
to: recipients 
text: message 
usingServer: 'smtp.gmail.com' 

此代碼給我一個Telnet協議錯誤。在Pharo smalltalk中通過SMTPClient發送電子郵件時出錯

我累了ZdcSecureSMTPClient類它工作正常。

所以在這裏我的問題是我可以發送電子郵件,而無需使用密碼作爲ZdcSecureSMTPClient使用密碼

回答

1

通過谷歌的服務器,而無需登錄無法發送。其實,我不認爲你可以在純文本發送,只是通過SSL。