add full example for handle incoming email and attchments