import time


def get_friendly_email_body(current_time, approved_articles):
    """
    Format the body of the email
    """

    body = ""

    date_format = "%Y-%m-%d"
    datetime_string = time.strftime(date_format, current_time)

    body += datetime_string
    body += "\n\n"
    body += "eLife is sending content for the following articles"
    body += "\n\n"

    for article in approved_articles:
        body += article.doi
        body += "\n"

    body += "\n\nSincerely\n\neLife bot"

    return body