$body=explode("body.txt");
$reply=explode("reply.txt");
parse();
$mailme=@mail("$POST['to']"."@domain.com","$subject[]","$body","From: name <name@domain.com>");
Any reason why that wouldn't work? Well, PHP 4.2.2 is complaining.
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
Here is function parse if you are curious:
function parse() {
ereg_replace("{name}","$POST['name']",$string);
ereg_replace("{email}","$POST['email']",$string);
ereg_replace("{ip}","$_SERVER['REMOTE_ADDR']",$string);
ereg_replace("{subject}","$POST['subject[]']",$string);
ereg_replace("{comments}","$POST['comments']",$string);
ereg_replace("{date}","date()",$string);
}
Yes, I know it's not the cleanest bit of code but it's all I need. So no laughing. 😛