Example of sending an email and querying status