我正在尝试通过文本流式传输并获取可以分配给发件人和收件人的值以使用 SMTPClient 发送邮件
|message sender recipient Stream peek|
message:= 'To: myemail@gmail.com, otheremail@yahoo.com
From: me@hotmail.com , ab@yahoo.com
Subject: mail test
Simple mail from me.'.
Stream:= message readStream.
peek:= Stream next.
peek = $T ifTrue[Stream position 2.
peek:= Stream next.
peek = $: ifTrue["How can get everything For To: and From:
as Senders and recipients"]].
我的另一个问题是
SMTPClient
deliverMailFrom: sender
to: recipient
text: message
usingServer: 'mail.mydomain'.
" ifTrue[Transcript show:('mail sent successfully')]"
我怎样才能检查这个,看看邮件是否成功发送