i use phpmailer too but if you can't or dont want to use that maybe you can have a look at this article.
http://www.theukwebdesignc
Main Topics
Browse All TopicsHow do I include an attachment like 'forms.pdf' using the standard PHP mail().?
<?php
mail("nobody@example.com",
"From: webmaster@{$_SERVER['SERVE
"Reply-To: webmaster@{$_SERVER['SERVE
"X-Mailer: PHP/" . phpversion());
?>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
i use phpmailer too but if you can't or dont want to use that maybe you can have a look at this article.
http://www.theukwebdesignc
For attach the file with Mail you need to read the file contents and store in variable then concate with $message. e.g.;
<?php
$attfile = "forms.pdf";
$file_name = basename ($attfile);
$fp = fopen ($attfile, "r");
$fcontent = "";
while (!feof ($fp))
{
$fcontent .= fgets ($fp, 1024);
}
$fcontent = chunk_split (base64_encode($fcontent))
@fclose ($fp);
$message .= "\n--$main_boundary\n";
$message .= "Content-Type: application/octetstream\n"
$message .= "Content-Transfer-Encoding
$message .= "Content-Disposition: inline; filename=\"$file_name\"\n"
$message .= "Content-ID: <$file_name>\n\n";
$message .= $fcontent;
$header = "From: webmaster@{$_SERVER['SERVE
$header .= "Reply-To: webmaster@{$_SERVER['SERVE
$header .= "X-Mailer: PHP/" . phpversion()";
$header .="MIME-Version: 1.0\n";
$header .="Content-Type: multipart/mixed;\n\tbounda
mail ("nobody@example.com", "the subject", $message, $header);
?>
Business Accounts
Answer for Membership
by: ldbkuttyPosted on 2004-12-15 at 07:25:44ID: 12830776
always good to stick with the best: http://phpmailer.sourcefor ge.net/ code/411.h tml for mail with attachments but never looked back after using phpmailer.
I remember once i used http://codewalkers.com/see