only log in to smtp server if username or password are set
Merge branch 'allow-passwordless-smtp' into develop