- mail: documentation ( source)
<?php
function sendMail($from, $to, $body, $subject){
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: '.$from."\r\n";
// corpo della mail
mail($to, $subject, $body, $headers);
}
sendMail('ajeje@gmail.com', 'adus@log607.com', 'ciao', 'ciao');
?>