Make your text box only hold as much data as you can transmit. Or send two messages if you need to. Do you think someone is going to paste a novel in there or something? This is a VERY stupid reason to use an LLM.
Then limit the text input to like 100 chars, giving another 60 for general "... continued in email to you@..."
Send the summary as the subject, and the full text in the email. easy peasy.
I'd also add a simple text auth/password prompt as well as list the contacts and their respective email and phone numbers too, so you can call easier.
Make your text box only hold as much data as you can transmit. Or send two messages if you need to. Do you think someone is going to paste a novel in there or something? This is a VERY stupid reason to use an LLM.