I know how to send an email using PHP :
$to = $_POST['to'];
$from = 'From: '.$_POST['from'];
$subject = '['.$_POST['tag'].'] '.$_POST['subject'];
$message = $_POST['message'];
mail($to, $subject, $message, $from);
My question is, how can I attach a TEXT file ? Suppose I have a text file called "order.txt" and I want to attach it in the mail.
I need this to send the order to a company, but it only accept email attachment.