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:
“all commented need to be changed”
msg := MailMessage newTextPlain.
msg from: 'firstname.lastname@example.org'. “address of where you want email to go”
msg to: 'email@example.com'. “start address”
msg subject: 'test mail from VW'.
msg text: 'This is a message test, just ignore it'.
client := SMTPClient host: 'smtp.system.com'. “smtp server url”
client user: (NetUser username: username password: password).
client sendMessage: msg.
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 = firstname.lastname@example.org
AT&T = email@example.com or firstname.lastname@example.org
Boost Mobile = email@example.com
Centennial Wireless = firstname.lastname@example.org
Einstein PCS = email@example.com
Nextel = firstname.lastname@example.org
Sprint = email@example.com or firstname.lastname@example.org
T-Mobile = email@example.com
US Cellular = firstname.lastname@example.org
Verizon Wireless = email@example.com
Virgin Mobile = firstname.lastname@example.org
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
Link to this Page
- Cases last edited on 30 July 2011 at 2:33 am by r59h132.res.gatech.edu