1
tomodea
Modifying xmail module to allow latest MS Office filetypes as attachments
  • 2010/3/6 4:57

  • tomodea

  • Just popping in

  • Posts: 47

  • Since: 2008/2/19


I discovered that xmail does not allow attachments of the new MS Office filetypes: docx, etc.

The modification appears to be a simple one. I modified the include file called mimetype.php.

Look for this statement:
"doc" => "application/msword",


Add these statements:
"docx" => "application/mswordx",
          
"ppt" => "application/mspowerpoint",
          
"pptx" => "application/mspowerpointx",
          
"xls" => "application/msexcel",
          
"xlsx" => "application/msexcelx",


I hope this helps.

2
tomodea
Re: Modifying xmail module to allow latest MS Office filetypes as attachments
  • 2010/3/11 20:47

  • tomodea

  • Just popping in

  • Posts: 47

  • Since: 2008/2/19


Although the statements shown above will work, the proper mimetypes can be found here: http://technet.microsoft.com/en-us/library/ee309278.aspx

The modified statements should therefore be:
"docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
          
"ppt" => "application/mspowerpoint",
          
"pptx" => "application/vnd.openxmlformats-officedocument.presentationml.presentation",
          
"xls" => "application/msexcel",
          
"xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",

Login

Who's Online

305 user(s) are online (222 user(s) are browsing Support Forums)


Members: 0


Guests: 305


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits