Ali,
That's not going to work, for reasons related to the state of the message body at the time you're manipulating it. You need to get to the bottom of the fundamental issue: why are the gateways not in the order you want? And you need to fix it on that level.
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry.