hi, i'm trying to get started w/ classes.
using the phpwizzard mail class (http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3)
anyone help me get started w/ this? it's not sending any mail based on what i'm doing here.
good links? quick fix?
CODE:
}; // end of class
if (isset($HTTP_POST_VARS))
{
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS))
{
$GLOBALS[$key] = $val;
$val=stripslashes($val);
$body .= "\n<P><B>$key: </B> $val</P>";
}
if (isset($file)){$attachment = fread(fopen("$file", "r"), filesize("$file"));}
$mail = new mime_mail();
$mail->from = "$realname <$email>";
$mail->headers = "Errors-To: $email";
$mail->to = "$to";
$mail->subject = "$subject";
$mail->body = "$body";
$mail->add_attachment("$attachment", "$file", "");
$mail->send();
} else {
?>
<FORM action="<?=$PHP_SELF?>" method="Post">