Error with e-mail sending flag is fixed, appears to be working good now