Simply copy and paste the code into a new module. On the Click event of your command button select Event procedure, click the build button and code:
EmailSnpFile
Make sure to add the Microsoft Outlook Object Library to your References (Tools > References from the Menu Bar in VBA Editor).