I want to send an attachment with drupal_mail() using hook_mail_alter(). Do you have any ideas about which parameter should I use?

Does the variable $param help, in some way?

1 Answer 1


The default mail implementation in Drupal does not support attachments.

You will need one of the contrib mail modules which support attachments, for example http://drupal.org/project/mailmime. I wasn't able to find any useful docs and it seems that the maintainer is aware of it and hopefully working on something.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.