If you want to send multiple type attachments like .pdf,.jpg/png,gif etc in mail then you have to change content type as
Content-Type: multipart/mixed;
Example:
$subject = “Subject Line”;
$filename = example.pdf;
$path = ”;
$admin_mail_sent = “test@gmail.com”;
$productMailMessage=”Your Message”;
<img src=’http://pic.autodesk.com/images/mail-logo.gif’><br>
$from1=”from@gmail.com”;
$from_name=”Admin”;
$admin_headers = “Content-Type: multipart/mixed; \n”.$from1.”\n”; // Mime type
mail_attachment($filename, $path, $admin_mail_sent, $from1, $from_name, $from1, $subject, $productMailMessage);
I am enjoying every small bit of it and I have bookmarked to take a look at new stuff you blog post.