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使用密碼