This page provides information on use of utility Command line email client in PHP script. Use of standard PHP mail() function which allows you to send mail, is very complicated. By using Febooti Command line email you can:
Example for PHP script:
/**** Febootimail PHP email ****/
<?php
// Send e-mail from PHP and output the result.
// (On a MS Window operating system with
// the "febootimail.exe" executable in the path).
$server=' -SMTP smtp.sender.com -PORT 25';
$body='"This is <I>HTML / MIME</I> e-mail message"';
$body.='" sent with <B>Febooti Command line email</B>"';
$subj='PHP mail';
$command='febootimail.exe -HTML -MIME -FROM web@sender.com ';
$command.='-TO john@sender.com '.$body.$server;
$command.='-SUBJ '.$subj.' -BODY '.$body.$server;
$result=0;
exec($command,$output,$result);
echo 'Output: ';
print_r($output);
echo '<BR>';
echo 'Result: '.$result;
// For detailed information about result codes, see:
// www.command-line-email.com/online-help/batch-file-errorlevel.html
?>
Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email.