Add general sending email utility function