Trying to send email through methods. I have a method
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].
My question was Workspace
addHeader:'To' with:'abcde@gmail.com'.
addHeader:'From' with:'efg@gmail.com'
When i execute above code one by one. All these values should be added to this method.
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"
How to get this result
'To: abcde@gmail.com
From: efg@gmail.com'