Check this one , A good article on mime emails
http://phpbuilder.com/colu
Lk
Main Topics
Browse All TopicsThis script i got from www.hotscript.com, which sends mails for me without attachments. plz modify this script to send attachments means i want to send html, swf's, zip files and images, anyone plz help me in doing this ...
<?php
if((isset($subject))&&($su
&&($from!="")&&(isset($mes
{
$message=$message."\n\n\n=
mail($to,$subject,$message
header("Location: mail.php");
exit();
}
?>
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.
Check this one , A good article on mime emails
http://phpbuilder.com/colu
Lk
Business Accounts
Answer for Membership
by: datibbaWPosted on 2002-02-15 at 01:02:08ID: 6803617
I will give you an example how to include a HTML file into your mail:
ndary\n"; tion: inline\n"; ndary\n"; r-Encoding : base64\n"; tion: attachment; filename=\"$filename\"\n"; 64_encode( join('',fi le($filena me))));
$message="From: $from\n";
$message.="MIME-Version: 1.0\n";
$message.="Content-Type: multipart/mixed; boundary = VerySimpleBoundary\n";
$message.="\n";
$message.="This is a MIME encoded message.\n";
$message.="\n";
// e-mail message body
$message.="--VerySimpleBou
$message.="Content-Type: text/plain\n";
$message.="Content-Disposi
$message.="\n";
$message.="$message\n";
// e-mail attachment;
// $filename is the path to your attachment
$message.="--VerySimpleBou
$message.="Content-Type: text/html\n"; // or whatever your mimetype is
$message.="Content-Transfe
$message.="Content-Disposi
$message.="\n";
$message.=chunk_split(base
mail($to,$subject,'MIME encoded message',$message);