from datetime import datetime
import socket


def prepare_email(sender_domain: str) -> list:
    """Generate the content of the email, given the domain of the sender. The email address will be dynamic - which is a combination of the identifier 'cutiescript' and the hostname of the machine the script is running on.

    Args:
        sender_domain (str): The domain name of the sender machine.

    Returns:
        list: A list containing the from address, the subject of the email and the content of the email.
    """
    today_date = datetime.now().strftime("%d-%m-%Y")
    hostname = socket.gethostname()
    subject = f"ALM Testplan export - {today_date}"
    content = f"""Hi all,

Please find attached the test plan export taken on {today_date}.

This is an automated mail. Please do not reply.
Generated by python-cutie, sent by {hostname}.
    """
    return [
        f"cutiescript-{hostname}@{sender_domain}",
        subject,
        content,
    ]