Ejemplo n.º 1
0
def local_smtp_account(db):
    from inbox.auth.generic import GenericAuthHandler

    handler = GenericAuthHandler(provider_name='custom')
    acc = handler.get_account(SHARD_ID,
                              '*****@*****.**',
                              {'email': '*****@*****.**',
                               'password': '******',
                               'imap_server_host': 'imap-test.nylas.com',
                               'imap_server_port': 143,
                               'smtp_server_host': SMTP_SERVER_HOST,
                               'smtp_server_port': SMTP_SERVER_PORT})
    db.session.add(acc)
    db.session.commit()
    return acc
Ejemplo n.º 2
0
def local_smtp_account(db):
    from inbox.auth.generic import GenericAuthHandler

    handler = GenericAuthHandler(provider_name='custom')
    acc = handler.get_account(
        SHARD_ID, '*****@*****.**', {
            'email': '*****@*****.**',
            'password': '******',
            'imap_server_host': 'imap-test.nylas.com',
            'imap_server_port': 143,
            'smtp_server_host': SMTP_SERVER_HOST,
            'smtp_server_port': SMTP_SERVER_PORT
        })
    db.session.add(acc)
    db.session.commit()
    return acc