| message sender recipients |
message := 'From: Me <myemail@gmail.com>
To: You <otheremail@gmail.com>
Subject: Simple Mail from pharo
This is a test mail'.
sender := 'myemail@gmail.com'.
recipients := #('your@gmail.com').
SMTPClient
deliverMailFrom: sender
to: recipients
text: message
usingServer: 'smtp.gmail.com'
这段代码给了我一个 Telnetprotocol 错误。
我厌倦了 ZdcSecureSMTPClient 类它工作正常。
所以我的问题是我可以在不使用密码的情况下发送电子邮件,因为 ZdcSecureSMTPClient 使用密码