How do I use sendmail

I do some programming but I am not a programmer, so please be sure to provide detail. Thanks in advance.

I am trying to send out a confirming email. But I have been stuck for several days. My last reply from support was to quit using smtp in my script and use senmail instead.

Iam waiting fro a further reply for support, but can anyone point me an example of the PHP script I need to use this “sendmail” magical solution.

Thank you in advance

$to = ‘’;
$subject = ‘Hello World!’;
$message = ‘Hello there.’;
mail($to, $subject, $message);

Above is the most basic use of the mail() function of PHP. I recommend reading the following link for more information.