Add option to send testmail

Sending a testmail to confirm that authentication on smtp server worked added.
However, when using multiple systems at the same time I noticed often that there were various errors, so I decided to only have authentication errors fail the sending of a test mail. Not the best possible solution yet, but a start.