Fix Exception if array in $_POST

Added a foreach if a $_POST variable is an array so it doesn't fail to
convert array to string in the email view