I want to send an attachment when i send an email. The code i am using is as follows
$headers = "Content-type: text/html; charset=iso-8859-1\r\n";
$to="test@test.com";
$subject = "test";
$msg="test";
mail("$to", "$subject", "$msg", $headers);
What additions do i have to add to send an attachment?. Is there any good tutorials on attachments?
Thanks in advance