Communications : Email Support (SMTP and IMAP4) : SMTP Client

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 and user/pass credentials.
(SstSmtpClientExample
forUrl: 'smtpsl://<smtp server address>’
user: 'username’
pass: 'password')
exampleSendMail1;
exampleSendMail2;