Separate sending mail from creating connection

Useful so connection can be reused to send more mail