fixed email payload to new parameters