function SendMailViaSMTP(srv, port, user, pass, from, to, subj, body, attach)


The SendMailViaSMTP function sends an email using the designated SMTP server as a relay. All parameters are strings, except for the port parameter which is an integer. Note: the to parameter may contain multiple recipients, separated by semi-colon (;) as you can see in the example below.


Example:


{
  SendMailViaSMTP('smtp.gmail.com', 587, 'me@me.me', GetSecret('smtp pass'), 'me@me.me', 'you@you.com;it@they.com', 'NEW BACKUP UPLOADED!', 'A new backup has been uploaded!'), '');
}