File size: 490 Bytes
494c89b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))

from core.config import get_config
from core.email_generator import EmailGenerator
import os

print(f"ENV EMAIL_STRATEGY: {os.environ.get('EMAIL_STRATEGY', 'NOT SET')}")

gen = EmailGenerator.from_env()
print(f"Generator strategy: {gen.config.strategy}")

result = gen.generate()
print(f"Registration email: {result.registration_email}")
print(f"Display name: {result.display_name}")