HTML version of email'; #html letter (might be also plain-text) $file = 'pdf/myFile.pdf'; # path to your file! $crlf = "\r\n"; # \r\n - for unix, just \r for windows systems $hdrs = array( 'From' => 'itsmegawtf@gmail.com', 'Subject' => 'Test mime message' ); #additional headers with params $mime = new Mail_mime($crlf); $mime->addAttachment($file, 'application/pdf'); #here we add pdf attachment with it's mime filetype :) $mime->setHTMLBody($html); #we have html letter, so we send it as html $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('mail'); #mail class creation $mail->send('YOUR_MAIL_HERE@DOMAIN.COM', $hdrs, $body); #Thats all! :) ?>