Sending emails rewritten