Implemement support for handling multiple documents when sending.