from email.mime.text import MIMEText
import uuid


def new_message(from_email, to_email):
    """Creates an email (headers & body) with a random subject"""
    msg = MIMEText('Testing')
    msg['Subject'] = uuid.uuid4().hex[:8]
    msg['From'] = from_email
    msg['To'] = to_email
    return msg.as_string(), msg['subject']