Fix e-mail sending bug