endpoints/mailer_endpoint.py
def accept_notification():
    content = request.data
    """
    pass content on to your unicorn army
    """
    email = {
        'from_email' : request.headers.get('from_email'),
        'to_email' : request.headers.get('to_email'),
        'subject' : request.headers.get('subject'),
        'body' : str(content)
    }
    try:
        send_mail(**email)
    except:
        return jsonify({'msg' : 'smtp says no!'})
    return jsonify({'msg' : 'gracias amigo!'})

    pass content on to your unicorn army
    
pass content on to your unicorn army
pass content on to your unicorn army
def accept_notification():
    content = request.data
    email = {
        'from_email' : request.headers.get('from_email'),
        'to_email' : request.headers.get('to_email'),
        'subject' : request.headers.get('subject'),
        'body' : str(content)
    }
    try:
        send_mail(**email)
    except:
        return jsonify({'msg' : 'smtp says no!'})
    return jsonify({'msg' : 'gracias amigo!'})
def accept_notification ( ) : content = request . data email = { 'from_email' : request . headers . get ( 'from_email' ) , 'to_email' : request . headers . get ( 'to_email' ) , 'subject' : request . headers . get ( 'subject' ) , 'body' : str ( content ) } try : send_mail ( ** email ) except : return jsonify ( { 'msg' : 'smtp says no!' } ) return jsonify ( { 'msg' : 'gracias amigo!' } )
pass content on to your unicorn army
pass content on to your unicorn army
"""
    pass content on to your unicorn army
    """