Support multiple 'to' addresses.

TODO: split addresses in the common function, not in calling code.

Change-Id: I0cb8d8b751c4c55452d8b3d7c836984d3a1f9440