build email from posted data