"Fill in the appropriate fields, this works"
| username password client |
username:= 'yourName@whatever.com'.
password:='yourPassword'.
"Use port 25 or 26 normally"
client := SMTPClient openOnHostNamed: 'mail.whatever.com' port: 26.
client user: username; password: password.
[client
mailFrom: 'yourName@whatever.com'
to: #('someoneElse@whatever.com')
text: 'Subject: Hello from SMTPClient!
From: <fromEmail>
To: <toEmail>
Sending from SMTPClient!'.
client quit]
ensure:[client close]
Guillaume Bourachot wrote