adding POST method in mail controller