Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(9)  |  Derive(0)  |  Import(5)

src/l/e/leastauthority.com-HEAD/lae_automation/confirmation.py   leastauthority.com(Download)
 
from twisted.internet import defer
 
from lae_util.send_email import send_plain_email, FROM_EMAIL, FROM_ADDRESS, PGP_NOTIFICATION_EMAIL
 
        headers["Subject"] = "Sign-up with PGP key"
        d.addCallback(lambda ign:
                      send_plain_email(FROM_EMAIL, PGP_NOTIFICATION_EMAIL,
                                       "Please send a confirmation e-mail to %r at %r." % (customer_name, customer_email),
                                       headers))
    else:
        print >>stdout, "Sending confirmation e-mail to <%s>..." % (customer_email,)
        d.addCallback(lambda ign:
                      send_plain_email(FROM_EMAIL, customer_email, content, headers))
              }
 
    d = send_plain_email(FROM_EMAIL, NOTIFY_FAILURE_EMAIL, content, headers)
 
    def _sent(ign):

src/l/e/leastauthority.com-HEAD/lae_automation/updatebulletins.py   leastauthority.com(Download)
 
from twisted.internet import defer
 
from lae_util.send_email import send_plain_email, FROM_EMAIL, FROM_ADDRESS, PGP_NOTIFICATION_EMAIL
 
        headers["Subject"] = "PGP key enabled: "+bulletinsubject_01
        d.addCallback(lambda ign:
                      send_plain_email(FROM_EMAIL, PGP_NOTIFICATION_EMAIL,
                                       "Please send an update bulletin, e-mail to %r at %r." % (customer_name, customer_email),
                                       headers))
    else:
        print >>stdout, "Sending update bulletin e-mail to <%s>..." % (customer_email)
        d.addCallback(lambda ign:
                      send_plain_email(FROM_EMAIL, customer_email, content, headers))

src/l/e/leastauthority.com-HEAD/lae_site/handlers/devpay_complete.py   leastauthority.com(Download)
from lae_util.flapp import FlappCommand
from lae_util.servers import append_record
from lae_util.send_email import send_plain_email, FROM_EMAIL, FROM_ADDRESS
 
from lae_site.handlers.web import env
              }
 
    d = send_plain_email(FROM_EMAIL, customer_email, content, headers)
    return d
 

src/l/e/leastauthority.com-HEAD/lae_automation/monitor.py   leastauthority.com(Download)
from lae_automation.server import run, set_host_and_key, NotListeningError
from lae_automation.aws.queryapi import pubIPextractor
from lae_util.send_email import send_plain_email, FROM_EMAIL
from lae_util.servers import append_record
from lae_util.timestamp import parse_iso_time
              }
 
    d = send_plain_email(FROM_EMAIL, TO_EMAIL, content, headers)
    d.addBoth(lambda ign: send_plain_email(FROM_EMAIL, TO_EMAIL2, content, headers))
    return d

src/l/e/leastauthority.com-HEAD/test_email.py   leastauthority.com(Download)
from twisted.python.failure import Failure
 
from lae_util.send_email import send_plain_email, FROM_EMAIL
 
 
        print x.value.response
 
d = send_plain_email(FROM_EMAIL, to_email, "Hello, this is a test.",
                     {"From": from_address, "Subject": subject})
d.addBoth(cb)