import smtplib


def connect(smtp_server, smtp_port, email, password):
    """
    Connect to the SMTP server to send emails.

    :param smtp_server: Hostname or IP Address of the SMTP server
    :param smtp_port: Port number of the SMTP server.
    :param email: Valid email address for authentication.
    :param password: Password of the email address for authentication.
    :returns: server instance after login with the credentials.
    :raises: None
    """
    server = smtplib.SMTP(smtp_server, smtp_port)
    server.starttls()
    server.login(email, password)
    return server