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).
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).

coolaj86/node-examples-js,coolaj86/node-examples-js,coolaj86/node-examples-js