Fixed a major mail sending bug; Removed server code, it's unnecessary.