tweak and reformat email just before sending it