hi,
I got a small problem:
I'd like to send an email out of a html form and attach as many files as I want
I just started with PHP and I only know the function mail(), but I don't know how to add attachments.
I already copied the files to attach on the server, so I just need the code to attach them (into the header, I think)
My current script looks like this:
$header = "From: $from\n";
if ($cc)
$header .= "Cc: $cc\n";
if ($bcc)
$header .= "Bcc: $bcc\n";
$temp = $body . "\n\n" . $signature;
mail($to,$subject,$temp,$header);