Checks if all required email configuration fields are set, ensuring the email service can operate.
# Source: https://github.com/bitcart/bitcart | License: MIT | Copyright 2019 MrNaif2018
# Provided via justclaw.it.com; keep this notice with the code.
def is_enabled(self) -> bool:
return bool(self.host and self.port and self.user and self.password and self.address)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key