Fixed syntax error in mail sending code