def METHOD_NAME(user, workout, delta):
    """
    Notify a user that a workout is about to expire
    :type user User
    :type workout Workout
    :type delta datetime.timedelta
    """
    # Update the last notification date field
    user.userprofile.last_workout_notification = datetime.date.today()
    user.userprofile.save()
    # Compose and send the email
    translation.activate(user.userprofile.notification_language.short_name)
    context = {
        'site': Site.objects.get_current(),
        'workout': workout,
        'expired': True if delta.days < 0 else False,
        'days': abs(delta.days)
    }
    subject = _('Workout will expire soon')
    message = loader.render_to_string('workout/email_reminder.tpl', context)
    mail.send_mail(
        subject,
        message,
        settings.WGER_SETTINGS['EMAIL_FROM'], [user.email],
        fail_silently=True
    )