Today's Smalltalk Daily looks at sending email messages from Cincom Smalltalk. The code I used in the screencast is below; to skip to the video, click here.
msg := MailMessage newTextPlain.
msg from: 'user1@system.com'.
msg to: 'user2@system.com'.
msg subject: 'test mail from VW'.
msg text: 'This is a message test, just ignore it'.
client := SMTPClient host: 'smtp.system.com'.
client user: (NetUser username: username password: password).
client useSecureConnection.
client connect.
client login.
client sendMessage: msg.
client quit.
To watch now, use the viewer below:
If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.
You can also watch it on YouTube:
Technorati Tags:
email, smalltalk