Changes to send attachment via email