

def send_newsletter(newsletter_name, *args, **kwargs):
    '\n    Gets a newsletter by its name and tries to send it to receiver\n    '
    from pennyblack.models import Newsletter
    newsletter = Newsletter.objects.get_workflow_newsletter_by_name(newsletter_name)
    if newsletter:
        newsletter.send(*args, **kwargs)

dataset/ETHPy150Open allink/pennyblack/pennyblack/__init__.py send_newsletter/original