setting title and content of email as parameters