In my attempt to migrate SMTP messaging to 9.2.2, I am looking for a class that collects headers and contents and finally reformats that to the String that is sent using SMTP (headers, two or more CR, then the message text).
For a moment I thought SstSmtpMailMessage is what I need. But I am not so sure any more after a few failed attempts.
2 things that make me wonder:
- SstSmtpClient>>#sendMail:from:to: only accepts a String as first parameter, and throws an error whan you hand in an SstSmtpMailmessage
- There seems to be no method in the whole Hierarchy of SstSmtpMailMessage hierarchy where the headers and contents are concatenated
So I guess this is not the place to look at....?
I'd like to simply do something like:
|msg headers|
headers := LookupTable new.
msg := MYWantedClass new.
msg headers: headers.
msg contents: 'Hi Seth and team,
I really love VAST 9.2.2. so far. Good job. Migration was smooth .. until I tried to send mails.
Regards,
Joachim'.
(SstSmtpClient forUrl: bla)
startup;
ehlo: 'something';
login; 'secret';
sendMail: msg from: 'jtuchel' to: 'support@instantiations' ;
logout.
But I seem to be looking for something that's not there...?
Joachim