an email-sending function
an email logger