add encoding, remove if/else for mail text