In 9.2.2 the class SstSMTPHeader is gone. It is not mentioned in the migration guide. So do I just paste my headers into the message text before using SstSmtpClient>>#sendMail:from:to: Joachim You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/bae5dc9a-d19c-41fa-96bc-35406d0f2520n%40googlegroups.com. |
Hello Joachim,
-- You are correct, it is not explicitly mentioned in the migration guide. That's because those frameworks (smtp and imap) were replaced with new ones with different abstractions. They are not based on the old ones, that's why we still ship the old (renamed to SstSMTPCommunicationsObsolete). in case you still need it. "So do I just paste my headers into the message text before using SstSmtpClient>>#sendMail:from: - Yes. If you have not done so already, have a look at the SstSmtpClientExample class and run through the examples - Seth On Thursday, July 30, 2020 at 6:27:08 AM UTC-4, Joachim Tuchel wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/669c9565-63d3-44e6-93f5-2d69cf8f4a6co%40googlegroups.com. |
In reply to this post by jtuchel
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:
So I guess this is not the place to look at....? I'd like to simply do something like: |msg headers| headers := LookupTable new. headers at: 'from' put: '[hidden email]'; at: 'Return-Path' put: ... 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 Joachim Tuchel schrieb am Donnerstag, 30. Juli 2020 um 12:27:08 UTC+2:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/e38ae34a-57f4-47b8-ac41-3694d3b65699n%40googlegroups.com. |
Okay, I am one step further: I can use SstSmtpMailMessage header: headers contents: mailtext to create such a message object. But handing it into SstSmtpClient>>#sendMail:from:to: ends with: SstSmtpMailMessage does not understand sstAsSmtpCompatibleString. So am I using the wrong object here or is this method missing? It is only implemented on String and ByteArray, so I guess I am on the wrong track... Joachim Joachim Tuchel schrieb am Donnerstag, 30. Juli 2020 um 14:11:34 UTC+2:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/8cb10ee1-4fe8-4c9d-8813-d7dcf2344176n%40googlegroups.com. |
Hi Joachim,
-- Not sure if you saw my last post...but see SstSmtpClientExample class. You don't need to do ehlo..it does it for you including helo fallback. Here is an example to follow: mail := String new writeStream nextPutAll: ('From: <%1>' bindWith: '[hidden email]'); cr; nextPutAll: ('To: <%1>' bindWith: '[hidden email]'); cr; nextPutAll: ('Subject: %1' bindWith: 'Email Subject'); cr; cr; nextPutAll: 'Message content'; cr; contents. (SstSmtpClient forUrl: url) login: user -> pass; logout On Thursday, July 30, 2020 at 8:20:35 AM UTC-4, Joachim Tuchel wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/4b705cdd-b0a8-4fb5-9811-433992a2b922o%40googlegroups.com. |
Seth, seems we wrote in parallel. So SstSmtpMailMessage is not what I'm looking for although it looks very much like it.... Thanks for your time and patience Joachim Seth Berman schrieb am Donnerstag, 30. Juli 2020 um 14:36:31 UTC+2:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/401ebbf1-038e-4681-979f-c79196f4051en%40googlegroups.com. |
Hi Joachim,
-- Sure, no problem. Have a good one. - Seth On Thursday, July 30, 2020 at 8:43:40 AM UTC-4, Joachim Tuchel wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/06d370a7-9b94-4b07-9729-1db03f2f05b1o%40googlegroups.com. |
Free forum by Nabble | Edit this page |