Hi I have a problem when send docx files, I think it's problem with the long of the mime, the result of this attache it's:

name="test.docx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.docx"

UEsDBBQABgAIAAAAIQA6Wvno/QEAAOUJAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAAC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
....

This it's in the body mail.

The other problem it's when the file has a name with more of 50 chars.

Comments

maxmendez’s picture

I checked all the mimes and encoding on the module and are correct, I have managed to determine that the body mail when pass for drupal_mail, this alters the body and occurs the problem above.

I opened a issues on the drupal core for this problem
http://drupal.org/node/1328696

Tor Arne Thune’s picture

Status: Active » Closed (won't fix)

Closing this as won't fix as it's a problem in Drupal core that can't be fixed by contact_attach. Will keep an eye on the core issue and help if I can.