another php function for mailing:
imap_mail() -
ref.
pear functions:
PEAR::mail -
ref.
PEAR::Mail_Mime - to decode or encode MIME messages -
ref.
an all php alternative to mail() provided by scott at criticalpath dot com (php.net commentor):
Code:
<?php
function sendmail($to='', $subject='', $message='', $headers='', $extra='')
{
$fd = popen("/usr/sbin/sendmail -t $extra", 'w');
fputs($fd, "To: $to\n");
fputs($fd, "Subject: $subject\n");
fputs($fd, "X-Mailer: PHP4\n");
if ($headers) {
fputs($fd, "$headers\n");
}
fputs($fd, "\n");
fputs($fd, $message);
pclose($fd);
}
?>