They're a little smarter than that. They never use the same address twice. I'm having the same problem. I want to turn off receiving texts from email addresses. Is that an option?
You can block SMS/MMS messages at Settings > Messages > Blocked. You may enter contact(s) with email addresses there.
But it sounds like a much better way to achieve your objective is simply to use Do Not Disturb at unreasonable hours.
Use Do Not Disturb on your iPhone, iPad, or iPod touch - Apple Support
I tried doing this on my iPhone7. I got to the list of blocked numbers/email addresses and selected "Add new". That brought me to my contacts list. The address is want to block is not one of my contacts...it is a spam address. How can I block it?
barbgt wrote:
The address is want to block is not one of my contacts...it is a spam address. How can I block it?
You block it by creating a contact having this spam address.
How to stop texts from email addresses?