coolaj86/node-examples-js — pull request #4 by ericpeterson (2011-11-22 00:26:44+00:00)
Title: Fixed the attachment bug. The contents of the attachment were being read...

... in with 'utf8' encoding, which causes binary attachments to become corrupted. Now the function readFileSync should be reading in the attachment contents as a Buffer (binary).