Exemplo n.º 1
0
def session_started_email(session):
    user = session.owner
    for shamer in user.shamers:
        msg = Message("%s has begun a Powershame session" % user.email,
                      sender="*****@*****.**",
                      recipients=[shamer.email])
        mail.send(msg)
Exemplo n.º 2
0
def session_started_email( session ):
    user = session.owner
    for shamer in user.shamers:
        msg = Message("%s has begun a Powershame session"%user.email,
                sender="*****@*****.**",
                recipients=[shamer.email] )
        mail.send( msg )
Exemplo n.º 3
0
def session_rendered_email( session ):
    user = session.owner
    for shamer in user.shamers:
        session_view = SessionView.query.filter_by( session=session, shamer=shamer ).first()
        session_url = url_for('.session_view_shamers', session_secret=session_view.secret, _external=True)
        msg = Message("Check out %s\'s finished Powershame session"%user.email,
                html="<a href=\"%s\">Check out %s\'s finished Powershame session</a>"%(session_url,user.email),
                sender="*****@*****.**",
                recipients=[shamer.email] )
        mail.send( msg )
Exemplo n.º 4
0
def session_rendered_email(session):
    user = session.owner
    for shamer in user.shamers:
        session_view = SessionView.query.filter_by(session=session,
                                                   shamer=shamer).first()
        session_url = url_for('.session_view_shamers',
                              session_secret=session_view.secret,
                              _external=True)
        msg = Message(
            "Check out %s\'s finished Powershame session" % user.email,
            html=
            "<a href=\"%s\">Check out %s\'s finished Powershame session</a>" %
            (session_url, user.email),
            sender="*****@*****.**",
            recipients=[shamer.email])
        mail.send(msg)
Exemplo n.º 5
0
def registration_email(user):
    msg = Message("Welcome to Powershame!",
                  sender="*****@*****.**",
                  recipients=[user.email])
    mail.send(msg)
Exemplo n.º 6
0
def registration_email( user ):
    msg = Message("Welcome to Powershame!",
            sender="*****@*****.**",
            recipients=[user.email] )
    mail.send( msg )