def METHOD_NAME(self):
    """
    This test will fail, since the mailserver does not exist
    """
    phone = "1234567890"
    message = "123456"
    smtp_config = {
        "mailserver": "xxx.yyy.zz",
        "mailsender": "user@example.com",
        # 'mailuser' : "useraccount",
        # 'mailpassword' : "somesecret",
        "mailto": "user@example.com",
        "subject": "<phone>",
        "body": "This is the otp value: <otp>",
        "raise_exception": True,
    }
    sms = getSMSProviderClass("SmtpSMSProvider", "SmtpSMSProvider")()
    sms.loadConfig(smtp_config)
    with pytest.raises(ProviderNotAvailable):
        sms.submitMessage(phone, message)
    smtp_config = {
        "mailserver": "localhost:1025",
        "mailsender": "user@example.com",
        # 'mailuser' : "useraccount",
        # 'mailpassword' : "somesecret",
        "mailto": "user@example.com",
        "subject": "<phone>",
        "body": "This is the otp value: <otp>",
        "raise_exception": False,
    }
    sms.loadConfig(smtp_config)
    ret = sms.submitMessage(phone, message)
    assert ret is False, ret
    smtp_config["raise_exception"] = True
    sms.loadConfig(smtp_config)
    with pytest.raises(
        Exception,
        match="Connection refused|Cannot assign requested address",
    ):
        sms.submitMessage(phone, message)