moved send mail var to test settings