<? include("mailer.class.php"); $mailer=new mailer("webmaster@localhost","does it work","yes","From: webmaster@localhost"); $mailer->file("example.php"); $mailer->attach("text/plain","see.txt","tada 2 attachments"); $test=$mailer->send(); echo $test?"sent":"error"; ?>