Added csv attachment support

Added csv attachment support which can be used via {attachment : 1} in mailoptions. Otherwise functions same as before.