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.


  SendMailViaSMTP('', 587, '', GetSecret('smtp pass'), '', ';', 'NEW BACKUP UPLOADED!', 'A new backup has been uploaded!'), '');