def METHOD_NAME(
    msg="Simulation finished.",
    subject="Simulation finished.",
    smtphost=SMTPHOST,
    address=EMAIL,
):
    """Send an e-mail stating that the simulation has finished."""
    if not (smtphost and address):
        print(
            "SMTP host and/or e-mail address not specified.\n"
            "Unable to send notification message."
        )
    else:
        import smtplib
        msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n") % (
            address,
            address,
            subject,
        ) + msg
        msg += "\nTimestamp: %s" % datetime.now().strftime("%H:%M:%S, %F")
        server = smtplib.SMTP(smtphost)
        server.sendmail(address, address, msg)
        server.quit()