I need to find a “simple” and “logical” way to find if mail being sent is going to someone inside my domain or external - other than by looking up on Domino Directory (user may be offline without full local directory).
On mail send do your check against what’s in the template.
It’s not pretty, but it does have three advantages:
It’s available offline. Once the mail template is replicated everyone has it.
One update serves all. Design update ensures that.
It applies to everyone. Everyone has a mail database based on a mail template.
Then again, can you be sure the mail template is replicated? I don’t know the logistics of that sort of thing. It’s entirely possible it’s just as easy to ensure replication of a separate DB as it is to ensure mail template replication and design update. I’ve always thought mail was special in that regard.
there is a product called MK Email Size Limiter that does it in the workstation side without needing to modify the template.Take a look at www.mknetwork.com
Subject: only way is to hard code the logic into your coce
If you know all the internal email domains you can hardcode those into your code and make a check.The only place where Domino stores a complete list of users in a particular domain is in the Domino Directory.