WattmonOS 3.12+
Send an email using a raw socket over SMTP
/lib/uphp/stmp.inc
This function will send an email using the SMTP Server settings that you pass to the function. You can use port 465 / 587 for SSL/TLS.
$to: Recipient email id
$from: Sender email id
$subject: Email subject
$message: Email message contents
$user: SMTP user id
$password: SMTP password
$host: SMTP Server hostname
$port: SMTP Server port
int - 250 if successful or else the SMTP error code