Trouble with formatting and email confirmations