1
[SMTPClient
deliverMailFrom: sender
to: recipient
text: message
usingServer: 'mail.google.com']
on: Error
do:["Transcript show:'Sumthing went wrong'"].
如果SMTPClient
引發Error
說TelnetProtocolError
或ConnectionTimedOut
。 什麼是正確的方式來使成績單顯示我的消息?錯誤處理SMTPClient