Code tidy - removed PHP mail functions