for key, attr in [
        ('host', 'smtp_host'),
        ('port', 'smtp_port'),
        ('sender', 'smtp_sender'),
        ('pass', 'smtp_pass'),