I can't give you a full answer, but you'll need to start with a script that will help you add attachments. I've attached a class I hacked out of someone else's, although I can't say I've used it much. I'm not sure if it's enough to just attach the images and swf file; that's something I've never tried.
Incidentally, I might recommend hosting the swf movie at least (and possibly the images, too) on your site, and then linking to them in the email. (I.e., embedding them, but from your site, not from the email attachments.) Of course, this requires that they stay online while reading their email, but it's one possibility if you can't get this to work.
//mail.php:
class mime_mail {
var $parts;
var $to;
var $from;
var $headers;
var $subject;
var $body;
function mime_mail() {
$this->parts = array();
$this->to = "";
$this->from = "";
$this->subject = "";
$this->body = "";
$this->headers = "";
}
function add_attachment($message, $name = "", $ctype = "application/octet-stream") {
$this->parts[] = array(
"ctype" => $ctype,
"message" => $message,
"encode" => $encode,
"name" => $name);
}
function build_message($part) {
$message = $part['message'];
$message = chunk_split(base64_encode($message));
$encoding = "base64";
return "Content-Type: " . $part['ctype'] . ($part['name'] ? "; name = \"" . $part['name'] . "\"" : "") .
"\nContent-Transfer-Encoding: $encoding\n\n$message\n";
}
function build_multipart() {
$boundary = "b" . md5(uniqid(time()));
$multipart = "Content-Type: multipart/mixed; boundary = $boundary\n\nThis is a MIME encoded message.\n\n--$boundary";
for ($i = sizeof($this->parts) - 1; $i >= 0; $i--) {
$multipart .= "\n" . $this->build_message($this->parts[$i]) . "--$boundary";
}
return $multipart .= "--\n";
}
function send() {
$mime = "";
if (!empty($this->from)) $mime .= "From: " . $this->from . "\n";
if (!empty($this->headers)) $mime .= $this->headers . "\n";
if (!empty($this->body)) $this->add_attachment($this->body, "", "text/plain");
$mime .= "MIME-Version: 1.0\n".$this->build_multipart(); mail($this->to, $this->subject, "", $mime);
}
};
/* Sample usage:
$attachment = fread(fopen("test.jpg", "r"), filesize("test.jpg"));
$mail = new mime_mail();
$mail->from = "foo@bar.com";
$mail->headers = "Errors-To: [email]foo@bar.com[/email]";
$mail->to = "bar@foo.com";
$mail->subject = "Testing...";
$mail->body = "This is just a test.";
$mail->add_attachment("$attachment", "test.jpg", "image/jpeg");
$mail->send(); */
?>