File: test_real_ssl_smtp.py

package info (click to toggle)
python-bottle-cork 0.12.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 936 kB
  • sloc: python: 6,862; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
from cork import Cork

import logging

logging.basicConfig(format='localhost - - [%(asctime)s] %(message)s', level=logging.DEBUG)
log = logging.getLogger(__name__)

aaa = Cork('example_conf',
    email_sender='federico.ceratto@gmail.com',
    smtp_url='ssl://federico.ceratto@gmail.com:jckgtwesxgfrrqfi@smtp.gmail.com:587'
)

aaa.register('user', 'pass', 'federico.ceratto@gmail.com')