Simplify sent mail script