Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/s/c/ScratchDocs-HEAD/docs.py   ScratchDocs(Download)
def send_notification(whom,about,what,how=None,justverify=False,body={},nonotify=False):
    import sendgrid # we import here because we don't want to force everyone installing this.
    assert cfg.RENDER_URL,"no RENDER_URL specified in config."
    assert cfg.SENDER,"no sender specified in config."
        sender = body.get('authormail')
        sender = cfg.SENDER
    subject_utf8 = subject.encode('utf-8')
    message = sendgrid.Message(sender,subject_utf8,open(tf.name).read(),open(expname).read())