minor modify to cross domain
working through parsing params but getting post
added email template and passing variabes