import re


def get_name_and_email(address):
    """
    Function to get name and email from addresses like
    Company <contact@company.com>, returned as tuple (name, email)
    """
    custom_sender_name = re.search(r'^([^<>]+)\s<([^<>]+)>$', address)
    if custom_sender_name:
        return custom_sender_name.group(1), custom_sender_name.group(2)
    else:
        return "", address