尝试通过方法发送电子邮件。我有一个方法
addHeader: headername with: aString
|email|
email:= aString.
'To'= headername ifTrue[ self message: 'To:', with ].
'From'= headername ifTrue[ self message: 'From:', with].
'Subject'= headername ifTrue[ self message:'Subject', with].
我的问题是工作区
addHeader:'To' with:'abcde@gmail.com'.
addHeader:'From' with:'efg@gmail.com'
当我一一执行上面的代码时。所有这些值都应添加到此方法中。
message: aString
"Recieves To: abcde@gmail.com"
^ message
"next time when it recieves From: efg@gmail.com. How can i concatenate
both earlier String and current String"
如何得到这个结果
'To: abcde@gmail.com
From: efg@gmail.com'