[bug] Send Mail from within a NetClients socket handler fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[bug] Send Mail from within a NetClients socket handler fails

Stephen-71
Issue status update for
http://smalltalk.gnu.org/node/277
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/277

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    NetClients
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  swoolerton
 Updated by:   swoolerton
 Status:       active

Script crashing when try and send an email from within a server socket
handler.

To reproduce...
Set up a client and server as per...
http://sblinn.jottit.com/gnu_smalltalk_netclients-based_echo_server

At http://smalltalk.gnu.org/blog/swoolerton/mail-scripting-0 there is a
class called SMTPHelper.

To see the fault, set the server atResponse method to something like
this...

respondTo: aRequest [
 | session sessionSocket msg smtpHelper |
   "sending an email from the aRequest method crashes"
   smtpHelper := SMTPHelper new.
   SMTPHelper smtpHost: 'myMailHost'.
   smtpHelper sendEmailMsg: msg from: fromEmailAddr to:  toEmailAddr
subject: 'Test'.
]




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk