Fixing mail send bug and unsuscribe option

Fixed the email sending function and PHP page for unsuscribe