mail: Fix various issues sending emails
This fixes the "Send" button taking down the whole app when sending an email, and the email client not taking into account the selected identity.
For the closing of the Send dialogue, I used the deprecated closeDialog method, as the new signal recently introduced in Kirigami is currently broken (it doesn't reach the Kirigami QML code), and I wasn't able to debug it myself.