How to send chatbot history through email?