sample code for email news letter