Add basic mailing functionality

Really basic stuff. It does not check any fields or input values, so
supplying a bad email or a bad email/service provider combo or having
bad recipients (bad emails) in the database will cause the program to
crash.