SMTP Client
VAST contains a powerful SMTP client which can be used to manage a session to send email to machines with an SMTP or ESMTP service.
An SMTP client requires an SMTP URL of the following form:
Non-secure Client: ‘smtpl://<smtp server address>’
Secure Client: ‘smtpsl://<smtp server address>’
A minimal example to send an email looks like the following:
(SstSmtpClient forUrl: ‘smtpsl://<smtp server address>’)

login: ‘username’ -> ‘password’;
sendMail: rfc822String from: fromAddress to: toAddress;
logout
The easiest way to learn how to use the SMTP client is by running the examples found in the <SstSmtpClientExample> class of the <SstEmailExamples> application. The examples require an smtp url, user/pass credentials and an email address.
(SstSmtpClientExample
forUrl: 'smtpsl://<smtp server address>’
user: 'username’
pass: 'password'
email: 'my@email.com')
exampleSendMail1;
exampleSendMail2;
 
Last modified date: 12/16/2020