View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

sending emails in smalltalk

So for our calendar we added a text message and email notification system. Their are two ways of doing thing. if you don't want to or have to use the gmail smtp server then you can use the following format.
This is the basic format you need to do:
msg client
“all commented need to be changed”
msg := MailMessage newTextPlain.
msg from: ''. “address of where you want email to go”
msg to: ''. “start address”
msg subject: 'test mail from VW'.
msg text: 'This is a message test, just ignore it'.
client := SMTPClient host: ''. “smtp server url”
client user: (NetUser username: username password: password).
client useSecureConnection.
client connect.
client login.
client sendMessage: msg.
client quit.

if You want to send emails through gmail you have to use the Security.X509.SSLBadCertificate this is an smtps security certificate that gmail accepts.

Also if you would like to see our implementation go to the store repository and lookup #TeamAlpha and download it. Then look in Framework at the EmailOrText class.

Finally if you would like to send text messages these are the emails of the major US carriers where xxxx... represents a typical 7 digit number.
Email addresses for the primary U.S. based cell phone carriers:
Alltel =
AT&T = or
Boost Mobile =
Centennial Wireless =
Einstein PCS =
Nextel =
Sprint = or
T-Mobile =
US Cellular =
Verizon Wireless =
Virgin Mobile =

hope this was helpful
Farzon Lotfi of Team Alpha
ps the smalltalk daily videos were really good on teaching how to use this. That would be my first place to look if you want to do any neat extra credit features.

secure smtp (smtps) smalltalk daily videos

smtp video

Link to this Page