fix error when 'SMTP' is selected as an email option (fixes #286)