> thank you, any one out there can assist me Plse > FYI, the TO field will have only a single email id. Try this:
%BCC=""%- %SetPattRegexp="^.*@([a-zA-z0-9.]*)>?$"%- %RegexpBlindMatch="%TO"%- %VAR1=%SubPatt="1"%- %BCC="management@%VAR1, accounts@%VAR1"%- Dear .... ++++ hi tony, works like a charm BUT observed that if the domain got a "-" in between your code does not work. EG: "aaabbb.com" works perfectly BUT if it's like "aaa-bbb.com" then it does not show the domain at all. it just shows management@, accounts@ in the BCC field. hope you can fix this one. many thanks -- vernon ________________________________________________ Current version is 6.6 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html