Index: messaging.mail.inc =================================================================== --- messaging.mail.inc (revision 25) +++ messaging.mail.inc (working copy) @@ -48,6 +48,7 @@ 'subject' => $message->subject, 'body' => $message->body, 'headers' => messaging_mail_headers($message, $params), + 'attachment' => $message->attachment, ); // Invoke hook_mail_alter() to allow all modules to alter the resulting e-mail. Index: messaging_phpmailer/messaging_phpmailer.module =================================================================== --- messaging_phpmailer/messaging_phpmailer.module (revision 25) +++ messaging_phpmailer/messaging_phpmailer.module (working copy) @@ -133,7 +133,13 @@ // The subject has been already filtered by messaging module $mail->Subject = $subject; $mail->Body = str_replace("\r", '', $body); - + + if(!empty($message['attachment'])){ + foreach($message['attachment'] as $filepath) { + $mail->AddAttachment($filepath); + } + } + // If enabled debug option, log everything... if (variable_get('messaging_phpmailer_debug', 0)) { $mail->SMTPDebug = TRUE;