async def METHOD_NAME(settings: SMTPSettings) -> SMTPServerInfo:
    """Raises SMTPException if cannot connect otherwise settings"""
    async with _create_smtp_client(settings) as smtp:
        return SMTPServerInfo(
            hostname=smtp.hostname,
            port=smtp.port,
            timeout=smtp.timeout,
            use_tls=smtp.use_tls,
        )