How do I use sendmail

software development

#1

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


#2

[php]<?php
$to = ‘someone@somewhere.com’;
$subject = ‘Hello World!’;
$message = ‘Hello there.’;
mail($to, $subject, $message);
?>[/php]

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

http://php.net/manual/en/function.mail.php