Well, and you might want to add that this is part of complex_send already and works perfectly fine, but was just forgotten when the code from complex send was salvaged to enhance ::send. So in your application you might just replace ::send with ::complex_send and off you go.
You would have to apply the patch which I posted in the bug tracker though.. It makes complex send just a wrapper for ::send, providing additional capabilities (like passing in folders and group_ids) but use ::send for the actual sending.